You are here: email sent by php script has empty content in Thunderbird « PHP Programming Language « IT news, forums, messages
email sent by php script has empty content in Thunderbird

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 ...

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация