Пример #1
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="config">邮件配置信息</param>
 protected Mail(MailConfig config)
 {
     InitMail(
         mailHost: config.MailHost,
         mailPort: config.MailPort,
         mailAddress: config.MailAddress,
         mailPassword: config.MailPassword,
         mailSign: config.MailSign);
 }
Пример #2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="config">邮件配置信息</param>
 public SmtpMail(MailConfig config) : base(config)
 {
 }