note 50130 deleted from ref.mail by didou
| From: | didou@php.net | Date: | Sun, 23 Apr 2006 22:27:50 +0000 |
| Subject: | note 50130 deleted from ref.mail by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-109195@lists.php.net to get a copy of this message | ||
Note Submitter: marcus at synchromedia dot co dot uk
----
I've been helping a lot of people with scripting, and mail() is always a sticking point because
no-one seems to be able to get the headers or MIME formatting right with their own code, mainly
because you need to read all the RFCs and understand them in order to get it right. The simple
answer is, don't bother trying: just use phpmailer instead: http://phpmailer.sourceforge.net/ it's a nice tidy
PHP class that deals with multipart MIME construction, header and body encodings, and it has a
built-in SMTP client too.
I really can't recommend it enough - it's worth pretending that the mail() function
doesn't exist.
The PEAR mail package mentioned in here offers similar improvements in available sleep hours and
hair retention.