ID:               28038
 Comment by:       abba000 at o2 dot pl
 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:

4 years have passed and nothing... What the hell? This is really
important! Anybody knows how to fix it?


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

[2009-01-12 11:49:18] julioworld at hotmail dot com

I also had this problem and I solved it by adding this line in the
php.ini in the section [mail function]:

[mail function]
sendmail_from = em...@domain.com

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

[2009-01-06 19:41:42] ghooey at gmail dot com

Unlike with a linux server the email address in
ini_set('sendmail_from', 'm...@domain.com); has to be a valid email
address

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

[2008-12-10 19:46:45] jordi at jcanals dot net

You did not understand where the bug is (or was). We pass the proper
headers exactly the same in any platform. PHP mail layer change them to
the wrong format, by adding extra signs.

What you say we have to consider, Is what we are doing. Read carefully
the bug description, the headers sent to PHP mail function, and the
headers sent by the mail layer to the mail server.

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

[2008-12-10 18:02:32] webmaster at cjr3 dot com

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 <some...@somewhere.tld>
Reply-To: Someone <some...@somewhere.tld>

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<n...@whatever.here>> or <Name
<n...@whatever.there>> 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.

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

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

David, your fix doesn't work. It still <Foo<f...@bar.com>>.
I also tried "Foo" <f...@bar.com> without success.

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

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

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