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

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
Thom995
Posts: 2
Joined: Wed 10 Mar 2021 08:29

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

Post by Thom995 » Sat 15 May 2021 09:16

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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

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

Post by ViktorV » Fri 21 May 2021 12:39

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

Post Reply