public SendingMailResult Send(MailDocument doc) { var config = _cacheService.GetSiteConfig(); EMail.EnableSsl = false; EMail.SmtpPort = Convert.ToInt32(config.MailServerPort); EMail.From = config.AdminEmail; EMail.Password = config.MailServerPass; EMail.UserName = config.MailServerLogin; EMail.SmtpServer = config.MailServerUrl; string error = string.Empty; return(EMail.Send(doc.ToEmail, doc.Subject, doc.Body, ref error)); }
public SendingMailResult Send(MailDocument doc) { var config = _cacheService.GetSiteConfig(); EMail.EnableSsl = false; EMail.SmtpPort = Convert.ToInt32(config.MailServerPort); EMail.From = config.AdminEmail; EMail.Password = config.MailServerPass; EMail.UserName = config.MailServerLogin; EMail.SmtpServer = config.MailServerUrl; string error = string.Empty; return EMail.Send(doc.ToEmail, doc.Subject, doc.Body, ref error); }