|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-25 07:11 UTC] guidance at g dot yi dot org
[2003-06-25 13:02 UTC] jharrell at dlc4me dot com
[2003-07-06 23:40 UTC] webmaster at e-xoops dot com
[2003-07-23 11:10 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
When using blank "To", and only Cc or Bcc to send an email, like below: mail("", "the subject", 'message body', "From: webmaster@$SERVER_NAME\r\n" ."Reply-To: webmaster@$SERVER_NAME\r\n" ."BCC: somebody@server.com\r\n" ."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: < somebody@server.com> ...... 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.