Tuesday , 2 September 2014
Home » PHP Programming » Common Issues/Bugs » SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)

SMTP -> ERROR: Failed to connect to server: Connection timed out (110)

Hello Friends,

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.

About Rakshit Patel

I am PHP Freelancer, Rakshit Patel AKA WordPress Freelancer working as PHP Programmer India. I am here to share all my developing knowledge, quick coding techniques, quick solutions to save your time and help you guys for any issue or bug fixing. If you have any PHP, WordPress, Magento related work, please contact me. I am interested for the work.

One comment

  1. Pingback: Trojan Remover

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>