示例#1
0
        private void initaliazeProvider()
        {
            //string ProviderStr = "c";
            //if (System.Configuration.ConfigurationManager.AppSettings["MAIL_PROVIDER"] != null &&
            //    System.Configuration.ConfigurationManager.AppSettings["MAIL_PROVIDER"].ToString() != "")
            //    ProviderStr = System.Configuration.ConfigurationManager.AppSettings["MAIL_PROVIDER"].ToString().ToLower();


            string ProviderStr = DocsPaUtils.Configuration.InitConfigurationKeys.GetValue("0", "BE_MAIL_PROVIDER");

            if (String.IsNullOrEmpty(ProviderStr))
            {
                ProviderStr = "c";
            }

            if (ProviderStr.StartsWith("c"))
            {
                provider = MailProvider.Chilkat;
            }
            else if (ProviderStr.StartsWith("m"))
            {
                provider = MailProvider.MailsystemNet;
            }

            logger.Debug("Instanziato provider di posta :" + provider.ToString());
        }
示例#2
0
        private void initaliazeProvider()
        {
            string ProviderStr = DocsPaUtils.Configuration.InitConfigurationKeys.GetValue("0", "BE_MAIL_PROVIDER");

            if (String.IsNullOrEmpty(ProviderStr))
            {
                ProviderStr = "c";
            }

            if (ProviderStr.StartsWith("c"))
            {
                provider = MailProvider.Chilkat;
            }
            else if (ProviderStr.StartsWith("m"))
            {
                provider = MailProvider.MailsystemNet;
            }

            logger.Debug("Instanziato provider di posta :" + provider.ToString());
        }