problems sending HTML mails
Posted: Sun Oct 19, 2003 7:34 am
Hi
Ive used the following code from another post to send HTML emails
It works perfectly fine, except when i receive the email myself, the HTML output contains the following line at the top of the email
Content-Transfer-Encoding: 8bit X-Mailer: PHP 4.1.2
how do I get rid of it?!
Ive used the following code from another post to send HTML emails
Code: Select all
<?php
$message = "<h1>Hello world!<h1>";
$to = "empfaenger@system.de";
$subject = "Betrefftext";
$xtra = "From: ab@sender.de (Ab Sender)\r\n";
$xtra .= "Content-Type: text/html\r\nContent-Transfer-Encoding: 8bit\r\n";
$xtra .= "X-Mailer: PHP ". phpversion();
mail($to,
$subject,
$message,
$xtra);
?>It works perfectly fine, except when i receive the email myself, the HTML output contains the following line at the top of the email
Content-Transfer-Encoding: 8bit X-Mailer: PHP 4.1.2
how do I get rid of it?!