public static void SendAsync(EmailCredential credential, EmailHelperModel model) { using (EmailHelper emailHelper = new EmailHelper(credential)) { emailHelper.SendAsync(model); } }
public void SendAsync(EmailHelperModel model) { sendCompletedCallbackEvent += model.SendCompletedCallbackEvent; SendAsync(model.SenderEmail, model.SenderName, model.ToList, model.CCList, model.Title, model.AttachedFiles, model.Content, model.IsBodyHtml, model.CallbackData); }