In my previous blog post Send Email From ASP.Net using Gmail as SMTP Client, I had shown how we can send email from ASP.Net application using gmail as smtp client and how to avoid the overriding of the "From Email Address" with the gmail account at the receipient inbox.
But, before doing all this, the gmail account which is to be used as smtp client need to be authenticated so that it can be used in the web-applications and devices (laptops, tablets, smart-phones) as smtp client. This can be achieved with the following 3 steps:
- Open the URL https://accounts.google.com/DisplayUnlockCaptcha. You will be asked to login using the gmail login. Login with the account which you need to use as smtp client credential.
- After entering correct email and password,you will be asked to confirm that this account will be used for devices and applications. Click on "continue".
- Your account access for devices and applications is enabled.
I hope this post is helpful to you.
Thanks & Regards,
Munjal