In this article I explain how to send an email in ASP.Net using MVC 4.
For this I will create a new project as in the following: Image 1 Image 2Now right-click on the Model Folder in the solution and click on "Add" | "New Item...". Image 3Add a new class. Image 4And here the MyMailModel.cs file has the following code:
ASP.NET MVC 5: A Beginner’s Guide