ID: 22262 Updated by: [EMAIL PROTECTED] Reported By: adamness at yahoo dot com -Status: Open +Status: Feedback Bug Type: Mail related Operating System: FreeBSD 4.3 PHP Version: 4.3.0 New Comment:
That seems to be a qmail issue to me, not a php one. Did you try to send by qmail-inject some plain text every line of which ends with "\r\n" and confirm if the received mail is the right one? Previous Comments: ------------------------------------------------------------------------ [2003-02-17 19:32:47] adamness at yahoo dot com The RFC's require lines in the email header to end in "\r\n". However, when using the mail function in PHP 4.3, and qmail-inject as the external mail program, the mail function was silently replacing my \n's with \r\n's, leaving me with "\r\r\n", which actually ends up violating the RFC, in a way that can cause buffer overflows in some mailreaders, and has been identified as a possible virus exploit by several virus scanners. For a solution, the mail function, before replacing a \n with \r\n should check if the previous character is already a \r. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22262&edit=1