ID: 23798 Comment by: jharrell at dlc4me dot com Reported By: guidance at g dot yi dot org Status: Open Bug Type: Mail related Operating System: Windows 2000 pro PHP Version: 4.3.2RC4 New Comment:
I'm using a To: address in the mail() and a list of inner company emails under the Bcc: header... but I still get the SMTP Unknown user error... this error was not here in 4.2.3... but I can confirm that 4.3.2 does have problems with the Bcc and Cc headers... For now I guess I will send individual emails out. :( Previous Comments: ------------------------------------------------------------------------ [2003-05-25 07:11:25] guidance at g dot yi dot org Some mail servers don't accept blank To, so this problem can't appear. I'm just using Phorum and Mercury/32 mail server, then found this problem. X-Envelope-To header also depends on the mail server. May not be created at all or other similar header. ------------------------------------------------------------------------ [2003-05-25 05:42:25] guidance at g dot yi dot org When using blank "To", and only Cc or Bcc to send an email, like below: mail("", "the subject", 'message body', "From: [EMAIL PROTECTED]" ."Reply-To: [EMAIL PROTECTED]" ."BCC: [EMAIL PROTECTED]" ."X-Mailer: PHP/" . phpversion()); the receiver mail server will complain user unknown error, if check the raw received mail, will like this: ...... X-Envelope-To: < [EMAIL PROTECTED]> ...... To: ...... Notice there's an extra space in X-Envelope-To header! Anyhow, if "To" is not blank, the received X-Envelope-To is correct. If don't leave space after the colon of Bcc and Cc, the problem could temporarily resolved. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23798&edit=1