// POST api/<controller> public void Post(Mail value) { var msg = new MailMessage { From = new MailAddress(value.FromAddress), Subject = value.Subject, Body = value.Body }; msg.To.Add(“emailaddress@domain.com”); try { SendMail(msg); } catch (Exception ex) { var r = ex.Message; } } public static void SendMail(MailMessage Message) { SmtpClient client = new SmtpClient(); client.Host = “smtp.googlemail.com”; client.Port […]

Read More →