note 33463 added to ref.mail

From: Date: Thu, 26 Jun 2003 18:43:30 +0000
Subject: note 33463 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-51056@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33463 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33463&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33463&report=yes

« previous php.notes (#51056) next »