Example #1
0
 private MailMessage(
     MailAddress from,
     List<MailAddress> to,
     string subject,
     string body = "",
     bool isBodyHtml = false)
 {
     this.From = from;
     this.To = to;
     this.Cc = new List<MailAddress>();
     this.Bcc = new List<MailAddress>();
     this.Subject = subject;
     this.Body = body;
     this.IsBodyHtml = isBodyHtml;
 }
Example #2
0
 public MailMessage(MailAddress from, MailAddress to, string subject, string body = "", bool isBodyHtml = false)
     : this(from, new List <MailAddress> {
     to
 }, subject, body, isBodyHtml)
 {
 }
Example #3
0
 public MailMessage(MailAddress from, MailAddress to, string subject, string body = "", bool isBodyHtml = false)
     : this(from, new List<MailAddress> { to }, subject, body, isBodyHtml)
 {
 }