You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
1.8 KiB
69 lines
1.8 KiB
using System;
|
|
|
|
namespace QM.Exchange.Adapters.Mail
|
|
{
|
|
/// <summary>
|
|
/// 邮件发送配置信息
|
|
/// </summary>
|
|
[Serializable]
|
|
public class SmtpServerInfo
|
|
{
|
|
#region 构造函数
|
|
|
|
/// <summary>
|
|
/// 构造函数
|
|
/// </summary>
|
|
public SmtpServerInfo()
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 带参构造函数
|
|
/// </summary>
|
|
/// <param name="SmtpServer">邮件服务器地址</param>
|
|
/// <param name="SenderUser">发送人登录名称</param>
|
|
/// <param name="SenderPassword">发送人密码</param>
|
|
/// <param name="DoMain">邮件服务器</param>
|
|
/// <param name="FromUserEmail">收件人邮箱</param>
|
|
public SmtpServerInfo(string smtpServer, string senderUser, string senderPassword, string doMain, string SenderUserEmail)
|
|
{
|
|
this.SmtpServer = smtpServer;
|
|
this.SenderUser = senderUser;
|
|
this.SenderPassword = senderPassword;
|
|
this.DoMain = doMain;
|
|
this.SenderUserEmail = SenderUserEmail;
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region 邮件服务配置属性
|
|
|
|
/// <summary>
|
|
/// 邮件服务器地址
|
|
/// </summary>
|
|
public string SmtpServer { set; get; }
|
|
|
|
/// <summary>
|
|
/// 发送人登录名称
|
|
/// </summary>
|
|
public string SenderUser { set; get; }
|
|
|
|
/// <summary>
|
|
/// 发送人密码
|
|
/// </summary>
|
|
public string SenderPassword { set; get; }
|
|
|
|
/// <summary>
|
|
/// 邮件服务器
|
|
/// </summary>
|
|
public string DoMain { set; get; }
|
|
|
|
/// <summary>
|
|
/// 收件人邮箱
|
|
/// </summary>
|
|
public string SenderUserEmail { set; get; }
|
|
|
|
#endregion
|
|
}
|
|
}
|
|
|