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 fails to send the email, however when I turn it off, the web application sends email successfully. Appreciate any kind of advice.
With the majority of 2FA systems, if the device is lost, stolen or compromised in some way (such as through malware), then the 2FA system becomes compromised. “Two-factor authentication does not authenticate an individual. It authenticates the device. It's what we call in the industry 'identity approximation'.
Setting up SMTP with 2-Step Verification On Your 123FormBuilder Forms. If you are using 2-step Verification in Gmail, in order to configure your SMTP email server you need to use an app password. An app password is a 16-digit code that gives an external app or device permission to access your Google Account.
Create a custom app in you Gmail security settings.
Use the token as password in combination with your full Gmail account and two factor authentication will not be required.
Note: The link in step 2 will work only if you have 2-factor-authentication enabled.
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: <full Gmail email address> Password: <Google-generated app 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With