예제 #1
0
        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));
        }
예제 #2
0
        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);
        }