public ActionResult SendContactUs(ContactUs obj) { string message = obj.Email + System.Environment.NewLine + "Email-" + obj.Email + System.Environment.NewLine + "Contact-" + obj.ContactNumber + System.Environment.NewLine + "Name-" + obj.Name; Utility.SendEmail("*****@*****.**", message, obj.Subject, obj.Name); TempData["Message"] = "Your query has been submitted successfully."; return RedirectToAction("ContactUs"); }
public ActionResult ContactUs() { var obj = new ContactUs(); return View(obj); }