Hi all,
I am newbie to ASP.NET and now start learning MVC , to enhance my skills on .NET platform . Currently , i am practising myself to do differnet task & pretty much know about MVC and eager to know how we can send email to client mailbox by using MVC5 . Can anyone share any link or blog ; from where i can learn and implement it . I read two or three articles but I don't understand the code properly how to use web helper class to implement it. Kindly share me the link , so that i can implement it ; i am highly appreciate for the same.

abhishek chauhanPosted Feb 27, 2017, 2:38 AM
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: / GetSendEmail
"
Send Email
Rajkiran SwainPosted Feb 27, 2017, 1:11 AM
mail.To.Add(_objModelMail.To);
mail.From = new MailAddress(_objModelMail.From);
mail.Subject = _objModelMail.Subject;
string Body = _objModelMail.Body;
mail.Body = Body;
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient();
smtp.Host = "smtp.gmail.com";
smtp.Port = 587;
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential
("username", "password");// Enter seders User name and password
smtp.EnableSsl = true;
smtp.Send(mail);
return View("Index", _objModelMail);
Rafnas T PPosted Feb 27, 2017, 12:36 AM
Nitin SontakkePosted Feb 27, 2017, 12:36 AM