note 8331 deleted from function.mail by jimw
| From: | jimw@php.net | Date: | Wed, 31 Oct 2001 23:04:56 +0000 |
| Subject: | note 8331 deleted from function.mail by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19866@lists.php.net to get a copy of this message | ||
If you are as CJ as me, you might wanna send a combined text/plain and text/html email. Heres how
you do it:
<?
$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");
?>