CreateCommon/SmtpConfig.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/******************************************************************************
 * 
 * Filename:  SmtpConfig.cs
 * Description:邮件发送配置,配置文件缓存键,配置文件文件名以及取得配置实例,缓存一天
 * Author :  liangjw
 * Created Mark:  2013-08-12
 * E-mail: liangjw0504@163.com
 * Version:    V1.0.0.0
 * Company: : Copyright (C) 2013 Create Family Wealth Power By Peter All Rights Reserved
 * Remark: 无
 * Update Author:   无
 * Update Description: 无
 * Update Mark : 无
 * 
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace CreateCommon
{
    public class SmtpConfig
    {
        #region 配置常量
        /// <summary>
        /// 配置文件缓存键
        /// </summary>
        public const string CONFIG_CACHE_KEY = "SmtpConfig";
        /// <summary>
        /// 配置文件文件名
        /// </summary>
        public const string CONFIG_FILE = "Smtp.config";
        #endregion

        #region 配置项

        #region Server
        /// <summary>
        /// Smtp服务器
        /// </summary>
        [XmlElement]
        public string Server { set; get; }
        #endregion

        #region Port
        /// <summary>
        /// 端口
        /// </summary>
        [XmlElement]
        public int Port { set; get; }
        #endregion

        #region Ssl
        /// <summary>
        /// 是否允许SSL
        /// </summary>
        [XmlElement]
        public bool Ssl { set; get; }
后面还有 61 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。