Gmail: 530 5.5.1 Authentication Required. Learn more at

前端 未结 5 1402
离开以前
离开以前 2020-11-29 10:02

This Go program successfully sends email from my home computer, but on a virtual server on DigitalOcean receives the following error:

panic: 530 5.5.1 Authen         


        
相关标签:
5条回答
  • 2020-11-29 10:37

    in may case setting SMTPAuth to true fixed it. Of-course you need to set permissions for "Less secure apps" to Enabled.

    $mail->SMTPAuth = true;

    0 讨论(0)
  • 2020-11-29 10:40

    Derp! I signed into the account and there was a "Suspicious login attempt" warning message at the top of the page. After clicking the warning and authorizing the access, everything works.

    0 讨论(0)
  • 2020-11-29 10:41

    You need to go here https://security.google.com/settings/security/apppasswords

    then select Gmail and then select device. then click on Generate. Simply Copy & Paste password which is generated by Google.

    0 讨论(0)
  • 2020-11-29 10:44

    You need turn on the POP mail and IMAP mail feature in setting of the email you are using to send mail. Good luck!

    0 讨论(0)
  • 2020-11-29 10:47

    Get to your Gmail account's security settings and set permissions for "Less secure apps" to Enabled. Worked for me.

    0 讨论(0)
提交回复
热议问题