MVC Contact Form with Email
问题 I wonder if someone can please help with a MVC Contact Form which send an Email on submission? I think I have most elements setup, but for some reason the form appear to be sending (takes ages) then just returns back to the form and no email is received. MailModels.cs: namespace WebApplication1.Models { public class MailModels { public string Name { get; set; } public string Email { get; set; } public string Telephone { get; set; } public string Message { get; set; } } } Contact.cshtml: