Mam taki kod w systemie newsow, który po wczesniejszym wybraniu section info wysyla dodatkowo maila.
Problem - po zmianie "$headers .= "Content-Type: text/plain;" na "text/html"
nie wysyła mi wogole maila
Co moze byc nie tak?
<?php
if ($this->post['section'] == 'info') {
//----------------------------------------------------------------------
$table = \"nletter\";
$data=date(\"d-m-Y, H:i:s\"); $godz=date(\"H:i:s\");
//adres web
$url = \"http://strona\"; //change \"http://www.strona.com\"
$tytul = isset($_POST['subject']) ?
$_POST['subject'] : ''; $tresc = isset($_POST['full']) ?
$_POST['full'] : '';
$username = $this->uname;
$mail_body = $username.\"nn\".$tytul .\" - \". $data .\"nn\". $tresc_po.\"nn\".\";
$result=mysql_query(\"select * from nletter order by email desc\");
$email = $row[\"email\"];
$adres = $email = $row[\"email\"];
$headers.=\"Bcc: $email\";
$headers = \"From: Info NewsLetter\n\";
$headers .= \"X-Mailer: phpn\"; // mailer
$headers .= \"X-Priority: 6n\"; // Urgent message!
$headers .= \"MIME-Version: 1.0rn\";
$headers .= \"Content-Type: text/plain; charset=iso-8859-2n\"; // Mime type
mail($adres, $tytul, $mail_body, $headers);
}
}
?>