public Mail(MailAddressCollection to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, MailAddress replyTo, MailAddress sender, bool senderHidden, string alternativeMessage, AttachmentCollection attachments, MailFormat format) { this.to = to; this.From = from; this.ReplyTo = replyTo; this.Sender = sender; this.Message = message; this.AlternativeMessage = alternativeMessage; this.Subject = subject; this.CC = cc; this.BCC = bcc; this.attachments = (attachments ?? new AttachmentCollection()); this.headers = new NameValueCollection(); this.Format = format; this.SenderHidden = senderHidden; }
public Mail(MailAddressCollection to, MailAddress from, string message, string subject, AttachmentCollection attachments, MailFormat format) : this(to, from, message, subject, null, null, null, null, false, null, attachments, format) { }
public Mail(MailAddress to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, MailAddress replyTo, MailAddress sender, bool senderHidden, string alternativeMessage, AttachmentCollection attachments, MailFormat format) : this(null as MailAddressCollection, from, message, subject, cc, bcc, replyTo, sender, senderHidden, alternativeMessage, attachments, format) { if(to != null) { this.to = new MailAddressCollection(to); } }
public Mail(string to, string from, string message, string subject, string cc, string bcc, AttachmentCollection attachments, MailFormat format, string alternativeMessage) : this(to, from, message, subject, cc, bcc, null, null, false, alternativeMessage, attachments, format) { }
public Mail(MailAddress to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, AttachmentCollection attachments, MailFormat format, string alternativeMessage) : this(to, from, message, subject, cc, bcc, null, null, false, alternativeMessage, attachments, format) { }
public Mail(string to, string from, string message, string subject, string cc, string bcc, AttachmentCollection attachments) : this(to, from, message, subject, cc, bcc, null, null, false, null, attachments, MailFormat.Text) { }
public Mail(MailAddressCollection to, MailAddress from, string message, string subject, AttachmentCollection attachments, MailFormat format) : this(to, from, message, subject, null, null, null, null, false, null, attachments, format) { }
public AttachmentCollection Clone() { AttachmentCollection collection = new AttachmentCollection(); collection.innerArray = (ArrayList)this.InnerArray.Clone(); return collection; }
public Mail(MailAddressCollection to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, MailAddress replyTo, MailAddress sender, bool senderHidden, string alternativeMessage, AttachmentCollection attachments, MailFormat format) { this.to = to; this.From = from; this.ReplyTo = replyTo; this.Sender = sender; this.Message = message; this.AlternativeMessage = alternativeMessage; this.Subject = subject; this.CC = cc; this.BCC = bcc; this.attachments = (attachments ?? new AttachmentCollection()); this.headers = new NameValueCollection(); this.Format = format; this.SenderHidden = senderHidden; }
public Mail(MailAddress to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, MailAddress replyTo, MailAddress sender, bool senderHidden, string alternativeMessage, AttachmentCollection attachments, MailFormat format) : this(null as MailAddressCollection, from, message, subject, cc, bcc, replyTo, sender, senderHidden, alternativeMessage, attachments, format) { if (to != null) { this.to = new MailAddressCollection(to); } }
public Mail(string to, string from, string message, string subject, string cc, string bcc, AttachmentCollection attachments, MailFormat format, string alternativeMessage) : this(to, from, message, subject, cc, bcc, null, null, false, alternativeMessage, attachments, format) { }
public Mail(string to, string from, string message, string subject, string cc, string bcc, AttachmentCollection attachments) : this(to, from, message, subject, cc, bcc, null, null, false, null, attachments, MailFormat.Text) { }
public Mail(string to, string from, string message, string subject, string cc, string bcc, string replyTo, string sender, bool senderHidden, string alternativeMessage, AttachmentCollection attachments, MailFormat format) : this(GetMailAddressCollection(to), GetMailAddress(from), message, subject, GetMailAddressCollection(cc), GetMailAddressCollection(bcc), GetMailAddress(replyTo), GetMailAddress(sender), senderHidden, alternativeMessage, attachments, format) { }
public Mail(MailAddressCollection to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, AttachmentCollection attachments) : this(to, from, message, subject, cc, bcc, null, null, false, null, attachments, MailFormat.Text) { }
public void Add(AttachmentCollection attachmentCollection) { InnerArray.AddRange(attachmentCollection); }
public Mail(MailAddressCollection to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, AttachmentCollection attachments, MailFormat format, string alternativeMessage) : this(to, from, message, subject, cc, bcc, null, null, false, alternativeMessage, attachments, format) { }
public Mail(string to, string from, string message, string subject, string cc, string bcc, string replyTo, string sender, bool senderHidden, string alternativeMessage, AttachmentCollection attachments, MailFormat format) : this(GetMailAddressCollection(to), GetMailAddress(from), message, subject, GetMailAddressCollection(cc), GetMailAddressCollection(bcc), GetMailAddress(replyTo), GetMailAddress(sender), senderHidden, alternativeMessage, attachments, format) { }
public void Add(AttachmentCollection attachmentCollection) { InnerArray.AddRange(attachmentCollection); }
public Mail(MailAddress to, MailAddress from, string message, string subject, MailAddressCollection cc, MailAddressCollection bcc, AttachmentCollection attachments) : this(to, from, message, subject, cc, bcc, null, null, false, null, attachments, MailFormat.Text) { }