note 37626 deleted from function.mail by aidan

From: Date: Mon, 14 Feb 2005 02:08:37 +0000
Subject: note 37626 deleted from function.mail by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-84958@lists.php.net to get a copy of this message
Note Submitter: jazfresh at spamjavelin dot hotmail dot com ---- Some MTAs (notably sendmail) can autoconvert quoted-printable (and other formats) into 8bit. In my case, quoted-printable iso-2022-jp Japanese emails were autoconverted to 8bit Content-Transfer-Encoding, and this failed to work properly on some popular Japanese email clients. To get around this, I had to send the mail as 8 bit, by just passing the raw ISO-2022-JP text straight to mail() and using a Content-Transfer-Encoding of "8bit". Here's a handy function for making sure your body's lines are terminated with \\r\\n, even if only some are \\n and some are \\r\\n (useful if you're using a mix of functions to build your message). <?php $body = implode("\r\n", preg_split("/\r?\n/", $body)); ?>

« previous php.notes (#84958) next »