In this article I am going to explain how to send email using Gmail account in asp.net MVC.
If you don’t have SMTP server to send email then you can use Gmail smtp server to send email from your MVC application.
Open the web.config file of project. Set key in appsettings. After that mailsettings as shown below: