note 8331 added to mail

From: Date: Wed, 06 Sep 2000 16:26:59 +0000
Subject: note 8331 added to mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-4249@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"); ?> http://www.php.net/manual/function.mail.php

« previous php.notes (#4249) next »