@model PartyInvites.Models.GuestResponse
@{
Layout = null;
}
Thanks
@{
try
{
WebMail.SmtpServer = "smtp.example.com";
WebMail.SmtpPort = 586;
WebMail.EnableSsl = true;
WebMail.UserName = "mySmtpUsername";
WebMail.Password = "mySmtpPassword";
WebMail.From = "rsvp@example.com";
WebMail.Send("party-host@example.com", "RSVP Notification",
Model.Name + " is " + ((Model.WillAttend ?? false) ? "" : "not")
+ "attending");
}
catch (Exception)
{
@:Sorry - we couldn't send the email to confirm your RSVP.
}
}
Thank you, @Model.Name
@if (Model.WillAttend == true)
{
@:It's great that you're coming. The drinks are already in the fridge
}
else
{
@:Sorry to hear that you can't make it, but thanks for letting us know
}