note 100193 deleted from function.mail by tularis

From: Date: Mon, 13 Jun 2016 10:30:40 +0000
Subject: note 100193 deleted from function.mail by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-205703@lists.php.net to get a copy of this message
Note Submitter: Michiel Uitdehaag ---- We had a LAMP setting with postfix as mail system. Our additional headers were not interpreted correctly by a receiving mailserver (Exchange/ENOD32) and a newline was inserted after the first additional header. It turns out that a internet/dos style newline (\r\n) in the headers were converted to \r\r\n (ie: something mindlessly replaced all \n with \r\n without seeing if \n was already preceded by \r) I don't know if this is something in PHP or postfix, but seeing the comments below I suspect it is something of PHP on *NIX in combination with non-sendmail mailers. So, use your 'local' newline style for additional headers, as opposed to the examples above. I don't know if this is a bug anywhere. I don't know which element exactly does the unix2dos translation. If it is PHP, it should only replace ([^\r])\n with \1\r\n

« previous php.notes (#205703) next »