protected override void Execute() { var mailSender = new MailSender(); mailSender.Send("*****@*****.**", Email, "AGRC Web API Password Reset", @"AGRC Web API - We have receieved a request to reset your password. Please log in and update your password. " + string.Format(@"Your new password is #{0}", Password)); }
protected override void Execute() { var mailSender = new MailSender(); mailSender.Send("*****@*****.**", App.NotifyList, "AGRC Web API New Key Notification", @"# New API Key Generated Please make sure this key is *awesome*. " + Account + @" " + NewKey); }
protected override void Execute() { var mailSender = new MailSender(); mailSender.Send("*****@*****.**", Account.Email, "AGRC Web API Email Confirmation", @"AGRC Web API - Thank you for applying for registration with the AGRC Web API. We have received your request and we will allow you to" + string.Format(" generate API keys as soon as you [confirm your email address]({0}) ", Url) + string.Format(@"by navigating to the following url: {0}", Url)); Account.Confirmation.TimesSent++; }
protected override void Execute() { var mail = new MailMessage(); mail.To.Add(ToAddresses); mail.From = new MailAddress("*****@*****.**", "Web API"); mail.Subject = string.Format("AGRC Web API - {0}", Message); mail.Body = string.Format( @"AGRC Web API - ## A geocoder is down. > *{0}* Check all of the other ones as well.", Message); var mailSender = new MailSender(); mailSender.Send(mail); }