#22317 [Opn->Fbk]: mail() has address parsing problems
| From: | sniper@php.net | Date: | Thu, 20 Feb 2003 06:26:21 +0000 |
| Subject: | #22317 [Opn->Fbk]: mail() has address parsing problems | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33640@lists.php.net to get a copy of this message | ||
ID: 22317
Updated by: sniper@php.net
Reported By: mark at virtualcreations dot com dot au
-Status: Open
+Status: Feedback
Bug Type: Mail related
Operating System: Win32
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-02-20 00:07:49] mark at virtualcreations dot com dot au
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 this bug report at http://bugs.php.net/?id=22317&edit=1