Ejemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="Psmtp"></param>
 /// <param name="Pfrom"></param>
 /// <param name="Ppwd"></param>
 /// <param name="mailRequest"></param>
 public MailHelper(string Psmtp, string Pfrom, string Ppwd, MailRequest mailRequest)
 {
     this.Smtp        = Psmtp;
     this.From        = Pfrom;
     this.Pwd         = Ppwd;
     this.MailRequest = mailRequest;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 配置文件需要配置邮箱地址
 /// </summary>
 /// <param name="mailRequest"></param>
 public MailHelper(MailRequest mailRequest)
 {
     this.Smtp        = ConfigHelper.GetValue("Smtp");
     this.From        = ConfigHelper.GetValue("From");;
     this.Pwd         = ConfigHelper.GetValue("Pwd");;
     this.Port        = ConfigHelper.GetValueOfInt("Port");
     this.MailRequest = mailRequest;
 }