Exemple #1
0
 /// <summary>
 /// 电子邮件[E-Mail]发送客户端实现类
 /// <para>使用时必须设置:</para>
 /// <para>1、邮件服务器地址</para>
 /// <para>2、邮件服务器端口号</para>
 /// <para>3、发件人用户名</para>
 /// <para>4、发件人密码</para>
 /// </summary>
 /// <param name="smtpServer">邮件服务器地址</param>
 /// <param name="smtpPort">邮件服务器端口号</param>
 /// <param name="userName">发件人用户名</param>
 /// <param name="password">发件人密码</param>
 public EMailClient(string smtpServer, int smtpPort, string userName, string password)
 {
     FEMailHelper = new EMailHelper();
     ErrorMessage = string.Empty;
     SMTPServer   = smtpServer;
     SMTPPort     = smtpPort;
     SMTPUserName = userName;
     SMTPPassword = password;
 }
Exemple #2
0
 /// <summary>
 /// 电子邮件[E-Mail]发送客户端实现类
 /// <para>使用时必须设置:</para>
 /// <para>1、邮件服务器地址</para>
 /// <para>2、邮件服务器端口号</para>
 /// <para>3、发件人用户名</para>
 /// <para>4、发件人密码</para>
 /// </summary>
 public EMailClient()
 {
     FEMailHelper = new EMailHelper();
     ErrorMessage = string.Empty;
 }