Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @{
- try
- {
- WebMail.SmtpServer = "smtp.gmail.com";
- WebMail.SmtpPort = 587;
- WebMail.EnableSsl = true;
- WebMail.UserName = "Danil Kuzichkin";
- WebMail.Password = "Esthete2711";
- WebMail.From = "agencyesthete@gmail.com";
- WebMail.Send(ViewBag.Address, "Оповещение о покупке книги.", String.Format("Дорогой покупатель [0]," +
- "спасибо за покупку книги в нашем магазине. \nВы приобрели [1].", ViewBag.Address,
- ViewBag.BookName));
- }
- catch (Exception)
- {
- @:<b>Soory - we couldn't send the email to confirm your RSVP.</b>
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement