Overview:


Previously, we use the method of “enable less secure app” within Gmail to send out the email about “Forgot Password” , “Confirm Your Email” etc, for all the ASP.NET MVC applications that we built.

Unfortunately, this method is no longer supported by Google, starting from 30 May 2022, as shown in the image below.

Untitled

So, we need to look for other SMTP service provider and update the SMTP setting for the ASP.NET MVC applications that we built.

Please do the following:


  1. Search for SMTP Service Provider with your preferred search engines like Google, Bing, etc. Choose your preferred SMTP service provider. For us, we are using Sendinblue (**https://www.sendinblue.com/**).

  2. After register your account with the chosen SMTP service provider, look for the SMTP details like SMTP host, SMTP Username and SMTP password. If you don’t know where is it, look for the help center or contact the support team of the SMTP service provider. If you are using Sendinblue, you could refer to this article to understand about how to get the details.

  3. After getting the SMTP details, open web.config file with Visual Studio, search for “smtp”, then replace the value. Build the project and publish the project. Done.

    Untitled