Exemplo n.º 1
0
        public void SetEmailConfigFromDB()
        {
            var oMailSetup = _AppSettingService.GetMailSettingSync();

            _emailConfig.From       = oMailSetup.FromMailID;
            _emailConfig.SmtpServer = oMailSetup.SmtpServer;
            _emailConfig.Port       = Convert.ToInt32(oMailSetup.SmtpServerPort);
            _emailConfig.UserName   = oMailSetup.MailUserID;
            _emailConfig.Password   = oMailSetup.MailPassword;
        }