Пример #1
0
		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;
		}
Пример #2
0
		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) { }
Пример #3
0
		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);
			}
		}
Пример #4
0
		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) { }
Пример #5
0
 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)
 {
 }
Пример #6
0
		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) { }
Пример #7
0
 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)
 {
 }
Пример #8
0
		public AttachmentCollection Clone() {
			AttachmentCollection collection = new AttachmentCollection();
			collection.innerArray = (ArrayList)this.InnerArray.Clone();
			return collection;
		}
Пример #9
0
 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;
 }
Пример #10
0
 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);
     }
 }
Пример #11
0
 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)
 {
 }
Пример #12
0
 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)
 {
 }
Пример #13
0
 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)
 {
 }
Пример #14
0
		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) { }
Пример #15
0
 public void Add(AttachmentCollection attachmentCollection)
 {
     InnerArray.AddRange(attachmentCollection);
 }
Пример #16
0
		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) { }
Пример #17
0
		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) { }
Пример #18
0
		public void Add(AttachmentCollection attachmentCollection) {
			InnerArray.AddRange(attachmentCollection);
		}
Пример #19
0
 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)
 {
 }