note 111139 added to function.imap-mail
| From: | t dot glaser at tarent dot de | Date: | Fri, 18 Jan 2013 15:24:01 +0000 |
| Subject: | note 111139 added to function.imap-mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-193205@lists.php.net to get a copy of this message | ||
Do *not* use this function!
In #sendmail on IRC, weâve been bothered a lot by PHP âdevelopersâ using mail() or
imap_mail() and complaining about this-or-that not working.
At https://www.mirbsd.org/cvs.cgi/contrib/hosted/tg/mailfrom.php?rev=HEAD
I published a âbetterâ mail sending routine I wrote specifically for visitors of our IRC
channel. It takes the sender (to use for /usr/sbin/sendmail -f) and the recipients (for listing on
the command line) separately, takes headers as an associative array and takes care of encoding them,
correctly, automatically. The function assumes an unixoid system (one that can popen()
/usr/sbin/sendmail) and UTF-8 support, and that the MSP automatically converts 8bit to
quoted-printable or base64 if needed (most notably, Exim does not do that).
Writing conversion code or a mail()-like wrapper would be possible but too fragile. Itâs easier
to change your code to use this routine in the first place, especially due to the auto-encoding
properties.
----
Server IP: 69.147.83.199
Probable Submitter: 94.198.62.204
----
Manual Page -- http://php.net/manual/en/function.imap-mail.php
Edit -- https://master.php.net/note/edit/111139
Del: integrated -- https://master.php.net/note/delete/111139/integrated
Del: useless -- https://master.php.net/note/delete/111139/useless
Del: bad code -- https://master.php.net/note/delete/111139/bad+code
Del: spam -- https://master.php.net/note/delete/111139/spam
Del: non-english -- https://master.php.net/note/delete/111139/non-english
Del: in docs -- https://master.php.net/note/delete/111139/in+docs
Del: other reasons-- https://master.php.net/note/delete/111139
Reject -- https://master.php.net/note/reject/111139
Search -- https://master.php.net/manage/user-notes.php