Skip to content
Advertisement

SMTP ERROR: Failed to connect to server: Connection timed out (110) when using phpmailer

This works perfectly in my old server.

2020-07-18 16:37:45 SMTP ERROR: Failed to connect to server: Connection timed out (110) SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting I am now using CentOS 7 and php7.3.2

What I’ve tried.

  • use port 587,465,25
  • use host smtp.gmail.com,108.177.122.108

This is my code:

JavaScript

UPDATE

I test telnet smtp.gmail.com for port 25 465 587,the result is also connection time out.Then I test on my computer gets a normal result.

Advertisement

Answer

I’m using a Linode Server, they blocked port 25, 465, 587, so I can’t send mail and telnet smtp.gmail.com. for more infomation, ckick here.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement