ID: 22785 Updated by: [EMAIL PROTECTED] Reported By: admin at aesirnetworks dot com -Status: Open +Status: Feedback Bug Type: Mail related Operating System: Win2K3 PHP Version: 4.3.2RC1 New Comment:
In all previous cases, any problems with mail() have been configuration issues. So check your php.ini for the mail related settings. (SMTP, etc.) And from the manual: "Note: You must use \r\n to separate headers, although some Unix mail transfer agents may work with just a single newline (\n). " You need to separate all the headers with \r\n.. Previous Comments: ------------------------------------------------------------------------ [2003-03-19 19:30:16] admin at aesirnetworks dot com We seem to have another unrelated technical issue with our single Win2K that has prevented us from doing any further testing there for the moment. But we have 3 Win2K3 boxes that run PHP just fine, with no other problems, and they all send mail fine. But not with the CC added. If this can be narrowed down to a configuration issue within PHP please let us know, but if it works without the CC but not with it, then what else is there to try? We’d like to narrow this down to a fix as soon as possible. If it’s on our end, then so be it, but as far as we can tell it looks like PHP itself is failing to process email correctly when using the CC. Are you using identical code? Or a variation? ------------------------------------------------------------------------ [2003-03-19 15:55:02] [EMAIL PROTECTED] Yes, I tried on windows 2000 machine, and it worked fine, regardless whether there was CC: or not. ------------------------------------------------------------------------ [2003-03-19 15:37:11] admin at aesirnetworks dot com We are testing on multiple machines. If you would like to view the info file, have ftp access, or anything else you believe is necessary to see the bug let me know. The code works fine if CC is not there, which means the email settings are fine. Add the CC and it fails. Take the CC out and it works. Please reevaluate. Mike Faulkner Systems Administrator Aesir Network Technologies ------------------------------------------------------------------------ [2003-03-19 10:39:41] [EMAIL PROTECTED] Works fine here. Check that you _really_ upgraded to 4.3.2RC1, check your smtp settings, etc. ------------------------------------------------------------------------ [2003-03-19 04:56:07] admin at aesirnetworks dot com >From news.txt. - Misc. Win32 mail() enhancements: support 'From:' header ([EMAIL PROTECTED]),support Bcc header, case-insensitive headers, enhanced error reporting,automatic proper line ending conversion, fixed crash with Cc, fixed buffer overflows with $header. (Markus) It looks like this issue was addresses specifically in this build, but we are unable to produce results with the following code on our test servers. This fails everytime.... <?php print mail('[EMAIL PROTECTED]', 'Subject', 'Your message here.', "To: The Receiver <[EMAIL PROTECTED]>\n" . "From: The Sender <[EMAIL PROTECTED]>\n" . "Cc: Interested <[EMAIL PROTECTED]>\r\n" . "X-Mailer: PHP 4.x"); ?> We remove the CC line and it works fine. We have tried \r\n, and \n, with all variations of Cc, cC, cc, CC and etc. to no avail. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22785&edit=1