ID:               28038
 Comment by:       webmaster at cjr3 dot com
 Reported By:      jordi at jcanals dot net
 Status:           Open
 Bug Type:         Mail related
 Operating System: win32 only
 PHP Version:      5CVS, 6CVS (2008-10-24)
 New Comment:

This so-called "bug" isn't so much a bug considering you should pass
the headers correctly (as you always should).

Consider the following:

Content-Type: text/html
From: Someone <[EMAIL PROTECTED]>
Reply-To: Someone <[EMAIL PROTECTED]>

As Windows (and other Microsoft products do) follows standards so
strict that at times can aggravate developers who are used to using
libraries fixing their mistakes for them, you'll need to pass proper
information for it to work properly.

The "work around" shouldn't be used because you're still modifying
PHP's intentions, which you shouldn't be doing unless absolutely
necessary.

Furthermore, you do not have to use <Name<[EMAIL PROTECTED]>> or <Name
<[EMAIL PROTECTED]>> for it to work (in fact, this does work, but it
does cut off after the first '>' and makes your name look stupid in the
"from" for the email.


Previous Comments:
------------------------------------------------------------------------

[2008-10-17 08:01:56] morgue1 at free dot fr

David, your fix doesn't work. It still <Foo<[EMAIL PROTECTED]>>.
I also tried "Foo" <[EMAIL PROTECTED]> without success.

I only can send mail without give name for sender or receiver.

------------------------------------------------------------------------

[2008-09-16 15:38:01] david at thedatabridge dot com

I had the same problem until I changed the format of my headers.

I had this problem with this style:

"From: Foo Bar <[EMAIL PROTECTED]>"

fixed by using this style:

"From: Foo Bar<[EMAIL PROTECTED]>"

Don't include space between Name and <email> and you should be ok!

:P

------------------------------------------------------------------------

[2008-09-11 13:11:19] andreas at pcdaemon dot gr

Yes this worked fine for me.
Thanks

------------------------------------------------------------------------

[2008-09-07 08:53:17] renouard_roch at hotmail dot fr

cool

------------------------------------------------------------------------

[2008-09-01 12:11:00] anon at anon dot com

Workaround is:

Set the following before calling the mail function:

ini_set('sendmail_from', '[EMAIL PROTECTED]);

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/28038

-- 
Edit this bug report at http://bugs.php.net/?id=28038&edit=1

Reply via email to