Space not trimmed in Bcc and Cc parsing
| Bug #23798 | Space not trimmed in Bcc and Cc parsing | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2003-05-25 05:42 UTC | Modified: | 2003-07-23 11:10 UTC |
|
||||||||||
| From: | guidance at g dot yi dot org | Assigned: | ||||||||||||
| Status: | Closed | Package: | Mail related | |||||||||||
| PHP Version: | 4.3.2RC4 | OS: | Windows 2000 pro | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2003-05-25 05:42 UTC] 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: 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.
Patches
Pull Requests
History
AllCommentsChangesGit/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