note 9914 added to mail
| From: | meandher1000 at yahoo dot com dot cn | Date: | Fri, 01 Dec 2000 06:38:32 +0000 |
| Subject: | note 9914 added to mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8319@lists.php.net to get a copy of this message | ||
After I use below code to send a combined text/plain and text/html email, I receive mail that show
good style from mailbox of Netscape.
But I receive mail that do not show correct style from OutLook Express or OutLook.
<?
$body="\r\ng--c0p4Jq0M2Yt08j34c0pContent-Type: text/plain; charset=us-ascii;
format=flowed\r\nContent-Transfer-Encoding:
7bit\r\n\r\n$textbody\r\n\r\n--gc0p4Jq0M2Yt08j34c0p\r\nContent-Type: text/html;
charset=us-ascii;\r\nContent-Transfer-Encoding: 7bit\r\n\r\n$htmlbody\r\n";
mail("$to","$subject",$body,"Mime-Version: 1.0\r\nFrom: $from\r\nReply-To:
$replyto\r\nContent-Type: multipart/alternative;\r\n boundary=gc0p4Jq0M2Yt08j34c0p\r\n");
?>
http://www.php.net/manual/function.mail.php