note 33463 rejected from ref.mail by betz
| From: | betz@php.net | Date: | Thu, 26 Jun 2003 19:05:58 +0000 |
| Subject: | note 33463 rejected from ref.mail by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51058@lists.php.net to get a copy of this message | ||
Note Submitter: chris@pongola.com
----
i'm having lotsa troubles sending html mail. the headers are printed in my message body and
some don't even appear like the Content-type: text/html; charset=iso-8859-1 one. I've
given up. This is my code:
$recip = "bla bla <me@domain.com>" . ", ";
$subject = "Photoshop Order";
$ContMsg = "<html><body>";
$ContMsg .= $_POST['CustomerName'] . " " . $_POST['CustomerSurname']
. "<br>";
$ContMsg .= $_POST['CustomerEmail'] . "<br>";
$ContMsg .= $_POST['CustomerTel'] . "<br>";
$ContMsg .= $_POST['AddressLine1'] . "<br>";
$ContMsg .= $_POST['AddressLine2'] . "<br>";
$ContMsg .= $_POST['AddressLine3'] . "<br>";
$ContMsg .= $_POST['AddressLine4'] . "<br>";
$ContMsg .= $_POST['AddressCity'] . "<br>";
$ContMsg .= $_POST['AddressPostalCode'] . "<br><br>";
$ContMsg .= stripslashes($_POST['OrderList']) . "<br><br>";
$ContMsg .= "User Comments:<br>" . $InfoRequiredToMail .
"<br><br>\r\n";
$ContMsg .= "</body></html>";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers = "From: " . $_POST['CustomerName'] . "<" .
$_POST['CustomerEmail'] . ">\r\n";
$headers .= "Reply-To: <" . $_POST['CustomerEmail'] . ">\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-Mailer: PHP / ".phpversion()."\r\n";
mail($recip, $subject, $ContMsg, $headers);
please help