Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try
- {
- WebMail.SmtpServer = "smtp-mail.outlook.com";
- WebMail.SmtpPort = 25;
- WebMail.EnableSsl = true;
- WebMail.UserName = "meuemail";
- WebMail.Password = "minhasenha";
- WebMail.From = "blabla@site.com";
- WebMail.Send("participantes@examples.com", "Notificação",
- Model.Nome + " é " + ((Model.VaiParticipar ?? false) ? "" : "Não") + "Sim");
- }
- catch (Exception)
- {
- @:<b>Desculpe, Email não enviado</b>
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement