namespace JcPersonal.Utility { using System; using System.Collections; using System.Net.Sockets; using System.IO; using System.Text;
/// /// Mail 发送器 /// public class MailSender { /// /// SMTP服务器域名 /// public string Server { get { return server; } set { if (value != server) server = value; } } private string server = "";
/// /// SMTP服务器端口 [默认为25] /// public int Port { get { return port; } set { if (value != port) port = value; } } private int port = 25;
/// /// 用户名 [如果需要身份验证的话] /// public string UserName { get { return userName; } set { if (value != userName) userName = value; } } private string userName = "";
/// /// 密码 [如果需要身份验证的话] /// public string Password { get { return password; } set { if (value != password) password = value; } } private string password = "";
/// /// 发件人地址 /// public string From { get { return from; } set { if (value != from) from = value;} } private string from = "";
/// /// 收件人地址 /// public string To { get { return to; } set { if (value != to) to = value;} } private string to = "";
/// /// 发件人姓名 /// public string FromName { get { return fromName; } set { if (value != fromName) fromName = value; } } private string fromName = "";
/// /// 收件人姓名 /// public string ToName { get { return toName; } set { if (value != toName) toName = value; } } private string toName = "";