public Task <HttpResponseMessage> SendEmailAsync(string email, string subject, string message)
        {
            //Plug in your email service here to send an email
            var sendMail = MailgunClient.GetInstance(Options.MailgunDomain, Options.MailgunApiKey);

            return(sendMail.SendEmailAsync(email, subject, message));
        }
Exemple #2
0
 public static MailgunClient GetInstance(string user, string secret)
 {
     if (_client == null)
     {
         _client = new MailgunClient(user, secret);
     }
     return(_client);
 }