using Azylee.Core.AppUtils.AppConfigUtils.AppConfigInterfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Azylee.Core.AppUtils.AppConfigUtils.AppConfigModels
{
///
/// Email邮箱配置信息
///
public class AppConfigEmailItem : IAppConfigItemModel
{
///
/// 序号
///
public int Number { get; set; }
///
/// 邮箱地址
///
public string MailAddress { get; set; }
///
/// 用户名
///
public string Username { get; set; }
///
/// 邮箱密码
///
public string Password { get; set; }
///
/// 对邮件内容进行socket层加密传输,false表示不加密
///
public bool SslEnable { get; set; }
///
/// 对发件人邮箱进行密码验证,false表示不对发件人邮箱进行密码验证
///
public bool PwdCheckEnable { get; set; }
///
/// 发送邮件所用的端口号(htmp协议默认为25)
///
public int Port { get; set; }
///
/// 默认构造函数
///
///
///
///
///
///
///
///
public AppConfigEmailItem(int _number, string _mailAddress, string _username, string _password, bool _sslEnable = false, bool _pwdCheckEnable = false, int _port = 25)
{
Number = _number;
MailAddress = _mailAddress;
Username = _username;
Password = _password;
SslEnable = _sslEnable;
PwdCheckEnable = _pwdCheckEnable;
Port = _port;
}
///
/// 排序序号
///
///
public int GetOrderNumber()
{
return this.Number;
}
///
/// 唯一名称
///
///
public string GetUniqueName()
{
return this.MailAddress;
}
}
}