Welcome Guest, Not a member yet? Register   Sign In
Using an SMTP server to send emails
#4

[eluser]jedd[/eluser]
Quote:Message: fsockopen() [function.fsockopen]: unable to connect to smtp.mysite.com:25 (php_network_getaddresses: getaddrinfo failed: No such host is known. )

Your DNS or hosts file is not configured properly - your server has no idea what those names resolve to. hosts is easier to update if you don't own the development box. Alternatively point it to an IP address. From memory RFC2822 lets you route to IP addresses (though some servers break spec and decline) if you wrap the IP address component of the address in square brackets.

You can check visibility at the commandline (on almost any OS) with:
Code:
$   telnet  smtp.mysite.com   25


Messages In This Thread
Using an SMTP server to send emails - by El Forum - 03-15-2009, 05:02 PM
Using an SMTP server to send emails - by El Forum - 03-15-2009, 05:15 PM
Using an SMTP server to send emails - by El Forum - 03-15-2009, 05:19 PM
Using an SMTP server to send emails - by El Forum - 03-15-2009, 05:26 PM
Using an SMTP server to send emails - by El Forum - 03-17-2009, 04:10 PM
Using an SMTP server to send emails - by El Forum - 03-17-2009, 04:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB