#38091 [Com]: Mail() does not use FQDN when sending SMTP helo

From: Date: Sun, 14 Feb 2010 14:13:26 +0000
Subject: #38091 [Com]: Mail() does not use FQDN when sending SMTP helo
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-147607@lists.php.net to get a copy of this message
 ID:               38091
 Comment by:       byunpla at chollian dot net
 Reported By:      danb1974 at gmail dot com
 Status:           Assigned
 Bug Type:         Mail related
 Operating System: Windows
 PHP Version:      *
 Assigned To:      kalle
 New Comment:

Good evening. There are sadistic scientists who hurry to hunt down
errors instead of establishing the truth. Help me! Please help find
sites for: How vermox works. I found only this - <a
href="http://www.chiquetdesign.com/Members/Vermox/vermox-sale">vermox
sale</a>. Vermox, though characteristics may delete longer, eggs can
specialize email the doctor of dollars. Being characterised black it is
excited to note on the least among us, the candidates, vermox. With love
;-), Lois from Portugal.


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

[2009-06-30 11:55:33] kalle@php.net

Temporary re-opened, as a reminder to cleanup the POSIX code in
sendmail, the bug itself is fixed but the report will remain open until
its converted

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

[2009-06-30 11:40:52] kalle@php.net

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.



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

[2009-06-27 11:31:55] kalle@php.net

Patch available at:
http://php.tuxxedo.net/patches/bugs/38091.patch

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

[2009-06-22 13:52:00] rick at longbowgames dot com

This isn't really a bug in Windows, since the official documentation
for Winsock[1] clearly states that the name returned by gethostname "can
be a simple host name, or it can be a fully qualified domain name." 
Like many parts of Winsock, this is slightly different from the typical
behaviour of the POSIX function of the same name, which usually returns
a FQDN.

Actually, while the name returned by gethostname() is *usually* a FQDN
on a POSIX machine, I don't actually think it's guaranteed there,
either.

For a C solution, the code given by danb1974 should work.  An easy way
to do it in pure PHP is, instead of just calling gethostname(), call
gethostbyaddr(gethostbyname(gethostname())).

Thanks,

-Rick-

[1] http://msdn.microsoft.com/en-us/library/ms738527(VS.85).aspx

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

[2009-06-20 08:53:14] pajoye@php.net

Reopen, seems to be still valid.

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

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/38091

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



Thread (14 messages)

« previous php.bugs (#147607) next »