Introduction: In this section, I am going to explain how to send mail with attachment using MVC. Here I created View to get data like receiver mail and attached file. By using SMTP server it will generate mail with attachment. Model: using System ; using System.Collections.Generic ; using System.Linq ; using System.Web ; namespace WebApplication2 . Models { public class MailDetailsMod { public string MailTo { get ; set ; } public HttpPostedFileBase MailAttachment { get ; set ; } } } View: @model WebApplication2.Models. MailDetailsMod @{ ViewBag.Title = "Send Mail With Attachment using MVC" ; } < center > < h2 > Send Mail with Attachment </ h2 > @ using (Html.BeginForm( "SendMail" , "Mail" , FormMethod .Post, new { enctype = "multipart/form-data" })) { < tabl