#22317 [NEW]: mail() has address parsing problems
| From: | mark at virtualcreations dot com dot au | Date: | Thu, 20 Feb 2003 06:07:49 +0000 |
| Subject: | #22317 [NEW]: mail() has address parsing problems | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-33635@lists.php.net to get a copy of this message | ||
From: mark at virtualcreations dot com dot au
Operating system: Win32
PHP version: 4.3.0
PHP Bug Type: Mail related
Bug description: mail() has address parsing problems
This just started happening with 4.3.0. Before that it was all fine. The
problem only exists on Win32 - it works perfectly on Linux.
Using the example from the manual, this works fine:
mail("xx@yy.com", "My Subject", "Line 1");
But this returns FALSE and the message is not sent:
mail("xx@yy.com, aa@bb.com", "My Subject", "Line 1");
However, THIS is fine (note the missing space):
mail("xx@yy.com,aa@bb.com", "My Subject", "Line 1");
Also, I have yet to figure out a way to send a message where the
recipient's NAME is also specified. For example, this fails:
mail("Fred <xx@yy.com>", "My Subject", "Line 1");
Finally, when I use a BCC option, it is also dependent upon the placement
of a space. For example, if I include a line that reads:
$headers .= "Bcc:xx@yy.com\n";
it works as expected, but:
$headers .= "Bcc: xx@yy.com\n";
fails. It doesn't make any difference if a "\r\n" is added to the end of
the line.
I repeat, all the problems above are NOT problems in Linux.
Mark.
--
Edit bug report at http://bugs.php.net/?id=22317&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22317&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22317&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22317&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22317&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22317&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22317&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22317&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22317&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22317&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22317&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22317&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22317&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22317&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22317&r=gnused