asked

We have a program that sends emails for clients using smtp.gmail.com as the SMTP server. The code is written in C# and uses SSL with the SendAsync function of the SmtpClient class. We ask clients to provide their username and password and enable the 'Allow less secure apps' option in their Gmail accounts. However, Google will block applications using only username and password after 31.05.2022. What changes must we make to our application to continue working after this date, and are there any C# examples for sending emails according to the new Google rules?

December 11th, 2023

Sign Up to View Answers

Create an account to view answers and interact with the community!