I was working with SMTP (Simple Mail Transfer Protocol) for sending email across IP (Internet Protocol) networks. I have downloaded smtp mailer class, it works fine in my local system. When i moved all files on server and when i try to send email, it shows below error message.
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP Error: Could not connect to SMTP host.
As from error message itself you will come to know that there is a problem with smtp connection. It is trying to connect but not getting success and connection time-out.
Connection time-out means the mail server cannot be reached anymore. If the mail server is different from your web server (i.e. not localhost) I had check with your hosting provider whether they enabled some sort of firewall that blocks connections on the SMTP port.
Let me know if you find any problem.