note 80332 modified in function.mail by danbrown

From: Date: Sun, 17 May 2009 20:03:44 +0000
Subject: note 80332 modified in function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155320@lists.php.net to get a copy of this message
Apparently if using the mbstring library, and using overriden functions, the "mail" command appears to use "Content-Transfer-Encoding: BASE64" by default. Which if you combine it with PEAR Mail_Mime you'll get mails that, although they appear RFC compliant, not mailer can read correctly. To fix this it appears you should add a fixed header in the mail command (this one assumes the pear mime module is 7bit clean, perhaps 8bit would also be fine) <?php $headers['Content-Transfer-Encoding'] = '7bit'; ?> --was-- Apparently if using the mbstring library, and using overriden functions, the "mail" command appears to use "Content-Transfer-Encoding: BASE64" by default. Which if you combine it with PEAR Mail_Mime you'll get mails that, although they appear RFC compliant, not mailer can read correctly. To fix this it appears you should add a fixed header in the mail command (this one assumes the pear mime module is 7bit clean, perhaps 8bit would also be fine) $headers['Content-Transfer-Encoding'] = '7bit'; http://php.net/manual/en/function.mail.php

« previous php.notes (#155320) next »