Unable to send email using Gmail SMTP server through PHPMailer, getting error: SMTP AUTH is required for message submission on port 587. How to fix?

前端 未结 12 2276
[愿得一人]
[愿得一人] 2020-11-22 02:42

I would like to send an email using Gmail SMTP server through PHP Mailer.

this is my code



        
12条回答
  •  -上瘾入骨i
    2020-11-22 03:35

    Google treat Gmail accounts differently depending on the available user information, probably to curb spammers.

    I couldn't use SMTP until I did the phone verification. Made another account to double check and I was able to confirm it.

提交回复
热议问题