//Test public void SendEmail(MandrillRequestModelTest model) { //Setup Test model.apiKey = ConfigService.MandrillApiKey; model.toEmail = ConfigService.MandrillTestEmail; model.fromEmail = ConfigService.MandrillFromEmail; //sets api key to api key stored in config file - makes easily changeable var api = new MandrillApi(model.apiKey); //mandrill payload var sendMessageRequest = new SendMessageRequest(new EmailMessage { To = new List <EmailAddress> { new EmailAddress { Email = model.toEmail, Name = "Bringpro" } }, FromEmail = model.fromEmail, Subject = "Mandrill Integration Test", Html = "<strong>Scheduled Email.</strong>", Text = "Example text" }); Task.Run(async() => await api.SendMessage(sendMessageRequest)); }
public void SendEmail(MandrillRequestModelTest model) { throw new NotImplementedException(); }