Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public ActionResult ConfirmarOrden()
- {
- MailMessage mail = new MailMessage();
- SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com");
- mail.From = new MailAddress("MICORREO@gmail.com");
- mail.To.Add("CORREODELCLIENTE@gmail.com");
- mail.Subject = "Nueva orden";
- mail.Body =
- "<table border striped><thead><tr><td>Preview</td><td>Name a Door</td><td>Outside profile</td><td>Inside profile</td><td>Flat Panel</td><td>Quantity</td><td>Sub-Total</td><td>Total Price</td></tr></thead><tbody><tr><td><img src=@i.Picture></td><td>@i.Material.Description</td><td>@i.OutsideEdgeProfile.Description</td><td>@i.InsideEdgeProfile.Description</td><td>@i.PanelMaterial.Description</td><td>@i.Quantity</td></tr></tbody></table>";
- mail.IsBodyHtml = true;
- SmtpServer.Port = 800;
- SmtpServer.Credentials = new System.Net.NetworkCredential("MICORREO@gmail.com", "CLAVEDEMICORREO");
- SmtpServer.EnableSsl = true;
- SmtpServer.Send(mail);
- return Json(true, JsonRequestBehavior.AllowGet);
- }
Add Comment
Please, Sign In to add comment