Forum > Networking and Web Programming

Sending email via SMTP using gmail

(1/2) > >>

Nicola Gorlandi:
Hi all,
I read that Google will change the way to login to its SMTP server introducing the Two-Factor Authentication (2FA).

It is possibile in Lazarus to send email with this authentication ?

In case there are library avaiable (as Xmailer for example) ?

Thanks,

Remy Lebeau:

--- Quote from: Nicola Gorlandi on May 13, 2022, 01:58:28 pm ---I read that Google will change the way to login to its SMTP server introducing the Two-Factor Authentication (2FA).

--- End quote ---

Gmail has supported 2FA via OAuth 1.0/2.0 for a long while now.  This is nothing new.  What is new is that they are simply turning off access to "less secure apps" by default, but you can turn it back on if you still need it.  Though, you really should use software that supports OAuth 2.0, that is the preferred method going forward.  But, using app-specific passwords still works, too.

Thaddy:
It is also included in FPC.

dseligo:
If you have 2-Step Verification turned on then you have to set App password for each application (you can't use main Google password).
You go to your Google account (not Settings in Gmail), Security and in the 'Signing into Google' panel you have 'App passwords' option.

Nicola Gorlandi:
Many thanks to all for your suggestions

Navigation

[0] Message Index

[#] Next page

Go to full version