February 4th, 2014, 06:50 AM
Error in mail
I got this error in my website it is developed in php.
"Warning: fsockopen() [function.fsockopen]: unable to connect to mail.rossprintonline.com:25 (Connection timed out) in /home/rossprin/public_html/includes/class.smtp.php on line 105"
Thanks & Regards
February 4th, 2014, 07:21 AM
I'm not sure how to reply without being sarcastic but have you actually read the error message?
It says quite clearly what the problem is and it doesn't take a genius to work out you need to figure out if your PHP/webserver can see (ping) the mail server and if it can, is port 25 open and accepting connections from the webserver?
That's not something we can do for you, I suggest you speak to the mail server administrator for help with this one.
Comments on this post
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984
February 4th, 2014, 09:02 AM
or a linguist!
Originally Posted by badger_fruit
February 4th, 2014, 09:43 AM
As mentioned, the error is pretty clear.
To provide a little insight, it means one of two things: Either there is no connection between the two servers (i.e. no internet connection or firewall block) or that the mail server is dropping the connection. This is common in mail servers that do not use standard ports. The way to troubleshoot this is to ping the mail server from your server. If it works, then it's most likely on the other end. If you're able to communicate over port 25 with other servers, that also narrows it down to the mail server in question as well. On the mail server side, it means that there is no service listening on port 25 or that there is a firewall blocking communication on that port, be it software or hardware.
Last edited by Nilpo; February 4th, 2014 at 09:46 AM.
February 4th, 2014, 10:04 AM
These days it is unusual for ISPs to allow port 25. I am betting you need to use the submission port 587 rather than the SMPT port.
There are 10 kinds of people in the world. Those that understand binary and those that don't.
February 5th, 2014, 02:26 AM
Originally Posted by Nilpo
February 5th, 2014, 02:28 AM