There is a nice function called sendmail available in the comments on php.net/mail. I use that regularly as it inserts all the necessary headers and supports multiple attachments. It's well worth considering...
Nathan ----- Original Message ----- From: Eugene Lee To: [EMAIL PROTECTED] Sent: Monday, November 24, 2003 5:19 AM Subject: Re: [PHP] HTML email enconding On Mon, Nov 24, 2003 at 03:33:57PM +0530, Binay wrote: : : So does it mean that if i don't encode the message then no need of : specifying the Content-Transfer-Encoding?? : And almost all mail client will interpret it correctly?? No. If your HTML message is guaranteed to be in the ISO-8859-1 range (e.g. only Latin-based languages), then you could likely get away with just these two headers. But you still need to specify both of them. : > Content-Type: text/html; charset="ISO-8859-1" : > Content-Transfer-Encoding: 7bit You need to follow the various RFCs to generate correct messsages. If you don't have time for that, I suggest you look at existing classes like PEAR's Mail_Mime package that does much of the work for you: http://pear.php.net/package/Mail_Mime -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php