Unable to send email via google smtp on centos VPS

后端 未结 5 1720
说谎
说谎 2021-01-03 10:35

I am trying to send email via google SMTP.

The code is working fine in my local windows PC in tomcat. But i got this error on my centos VPS

org.apach         


        
5条回答
  •  梦谈多话
    2021-01-03 10:42

    Your host name must be smtp.gmail.com if you are using SMTP and port number can be either 465 or 587. Your error log informs like your username or password is wrong so please ensure your account credentials and try again. Please have a look at this google mail client link.

提交回复
热议问题