|
Posted by rukkie on 06/22/07 10:01
Hi,
I have here some strange behaviour, when sending a mail out from my
php script. The mail is perfectly readable in MS Outlook, but has an
empty body when reading the mail with Thunderbird (version 1.5.0.12).
Using "View>Message source", one can see the body ...
The script used is :
***********************************************************************************
$to="xxxxxxxx@xxxxxxx";
$link="http://www.yyy.zzz/test.html";
$from="xxxxxxxx@xxxxxxx";
$subject= "Test" ;
$message = "Test Test." ."\n";
$message .=" " ."\n";
$message .="Link Test" .$link."\n";
$message .=" " ."\n";
$message .=" " ."\n";
$headers = "From: " . $from . "\n" ;
// $headers .= "MIME-Version: 1.0\r\n";
$headers .= "MIME-Version: 1.0\n";
// $headers .= "Content-type: multipart/mixed; charset=iso-8859-1\r
\n";
$headers .= "Content-type: multipart/mixed; charset=iso-8859-1\n";
mail($to, $subject, $message, $headers);
*********************************************************************************************
Can it be that it has something to do with the MIME or content-type ?
Or is there something wrong in the Thunderbird settings ?
Any information is more than welcome ...
[Back to original message]
|