Phpmailer using smtp with Gmail not working - connection timing out

前端 未结 8 1985
天命终不由人
天命终不由人 2020-12-11 07:52

I\'ve looked into the following links:

phpmailer send gmail smtp timeout

send email using Gmail SMTP server through PHP Mailer

http://uly.me/phpmaile

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-11 08:16

    Check to make sure you can reach gmail from your webhost. I'm assuming it's linux. SSH in and on the command line type

    telnet smtp.gmail.com 587
    

    You should get back

    Connected to smtp.something 
    

    It has to be a configuration difference between localhost and your provider

提交回复
热议问题