Page 1 of 1

Connection via ScSMTPClient to a Gmail Account (OAuth 2 Authentication)

Posted: Sat 15 May 2021 09:16
by Thom995
Hi,

Is there a way to send Emails from a Gmail Account (Google Mail) via the ScSMTPClient Component.

As I understand I would need an authentication via “OAuth 2”.

In case it is possible, can anyone help me with an example ?

Thanks

Thomas

Re: Connection via ScSMTPClient to a Gmail Account (OAuth 2 Authentication)

Posted: Fri 21 May 2021 12:39
by ViktorV
Hey Thom,

In order to resolve described issue, you may enable two-factor authentication and use App Password like described in instructions.
You may also find an example of how to use the TScSMTPClient component on our forum:
viewtopic.php?t=44303
You need to specify full login for your email in TScSmtpClient.Username property and in TScSmtpClient.Password property- generated App Password.

Best regards,
Viktor