예제 #1
0
        //public static Save()
        //{
        //}

        /// <summary>
        /// 创建Config
        /// </summary>
        /// <returns></returns>
        public static PopConfig Create()
        {
            if (_popConfig == null)
            {
                _popConfig = new PopConfig();
            }
            return(_popConfig);
        }
예제 #2
0
        /// <summary>
        /// 接收邮件
        /// </summary>
        /// <returns></returns>
        public static List <MailMessageEx> Receive()
        {
            PopSetting ps = PopConfig.Create().PopSetting;

            return(Receive(ps.Server, ps.Port, ps.UseSSL, ps.UserName, ps.Password));
        }