public void Send(string toMail, string title, string content, ProcessType type = ProcessType.Normal) { if (instanceMail != null) { if (type == ProcessType.Normal) { instanceMail.Send(toMail, title, content); } else { MailSendUserHandler sendUser = new MailSendUserHandler(instanceMail.Send); sendUser.BeginInvoke(toMail, title, content, null, null); } } }
public void Send(string toMail, string title, string content, ProcessType type = ProcessType.Normal) { if (instanceMail != null) { if (type == ProcessType.Normal) { instanceMail.Send(toMail, title, content); } else { try { MailSendUserHandler sendUser = new MailSendUserHandler(instanceMail.Send); sendUser.BeginInvoke(toMail, title, content, null, null); } catch (Exception ex) { LogManager.SqlDB.Write("Asecron Mail Gönderim", ex); } } } }