Example #1
0
        private string[] _strreplyto = null;             //reply to addresss

        #region Contructors

        public MailUtil()
        {
            _strHost    = ConfigCache.GetAppConfig("MAIL_HOST");
            _strAccount = ConfigCache.GetAppConfig("MAIL_ACCOUNT");
            _strPwd     = ConfigCache.GetAppConfig("MAIL_PASSWORD");
            _strFrom    = ConfigCache.GetAppConfig("MAIL_FROM");
            _strto      = ConfigCache.GetAppConfig("MAIL_TO").Split(new char[] { ',' });
            _port       = ConfigCache.GetIntAppConfig("MAIL_PORT");
            _strreplyto = ConfigCache.GetAppConfig("MAIL_REPLYTO").Split(new char[] { ',' });
        }
Example #2
0
 [TestMethod]//获取appconfig内容 返回int类型
 public void GetIntAppConfigTest()
 {
     ConfigCache.LoadAppConfig(null);
     Assert.AreEqual(1, ConfigCache.GetIntAppConfig("TEST_INT"));
 }