public static EMail CreateEMail() { EMail currentMailEntity = new EMail(); currentMailEntity.MailBCCList = new List<string>(); currentMailEntity.MailCCList = new List<string>(); currentMailEntity.MailToList = new List<string>(); return currentMailEntity; }
/// <summary> /// send mail via mail entity /// </summary> /// <param name="emailModel"></param> /// <returns>send mail success return true otherwise return false</returns> public void SendMail(EMail emailModel) { ThreadPool.QueueUserWorkItem(new WaitCallback(Send), emailModel); }