Re: [INTERNALS-WIN] mail() sending local hostname instead of fully-qualified hostname as HELO

From: Date: Thu, 25 Jun 2009 16:43:31 +0000
Subject: Re: [INTERNALS-WIN] mail() sending local hostname instead of fully-qualified hostname as HELO
References: 1 2 3 4 5 6  Groups: php.internals.win 
Request: Send a blank email to internals-win+get-518@lists.php.net to get a copy of this message
Hey Kalle, Your new patch still works for me, but I haven't really tested your new code, because I can't think of any way to convince gethostname to return an IP address. Actually, is that isdigit check really necessary? The docs for gethostname specify that "it is guaranteed that the name returned will be successfully parsed by gethostbyname". -Rick- Kalle Sommer Nielsen wrote:
Hi again 2009/6/23 Rick Yorgason <rick@longbowgames.com>:
+1 to the patch.
I revised the patch, and its available here: http://pastie.org/522368 It also takes if gethostname returns an ip into account, with support for IPv6 address if php is compiled with IPv6 support. Let me know if the patch still passes on your machine by using this patch. (Patched for PHP_5_3)


« previous php.internals.win (#518) next »