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