Sending email fails when two factor authentication is on for Gmail

后端 未结 2 1677
半阙折子戏
半阙折子戏 2020-12-02 05:20

I am using my Gmail account and smtp.gmail.com inside my web application to test and send email. when two factor authentication is ON for my Gmail account, it f

2条回答
  •  鱼传尺愫
    2020-12-02 05:57

    If you are here because of difficulties with the ARQ backup app on Mac OSX, I found the following settings worked for me:

    SMTP hostname: smtp.gmail.com
    SMTP Port: 587
    Click: Enable SSL (STARTTLS)
    Authentication Type: Password (SASL PLAIN)
    User Name: 
    Password: 
    

    The Google-generated app password is generated as @stoyan-dimov suggests in his answer above, using the following URL:

    https://security.google.com/settings/security/apppasswords

    Choose to generate a 'Mail' password, and set the device as 'Custom' (I called mine "ARQ".)

    Caveat: You must have two-factor authentication enabled on your Google account to get to the above URL.

提交回复
热议问题