public EmailHelperModel() { ToList = new List <string>(); CCList = new List <string>(); IsBodyHtml = false; AttachedFiles = new List <string>(); CallbackData = null; SendCompletedCallbackEvent = null; }
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); }
private void DisposeAfterSendCompleted() { callbackData = null; sendCompletedCallbackEvent = null; GC.Collect(); }