private void Initialise() { this._blindedCarbonCopies = new EmailAddressCollection(); this._carbonCopies = new EmailAddressCollection(); this._contentTransferEncoding = EContentTransferEncoding.SevenBit; this._contentType = new Net.Common.ContentType(); this._extraHeaders = new ExtraHeadersDictionary(); this._isDefaultContentTransferEncoding = true; this._isDefaultContentType = true; this._keywords = new List <string>(); this._replyTo = new EmailAddressCollection(); this._resentBlindedCarbonCopies = new EmailAddressCollection(); this._resentCarbonCopies = new EmailAddressCollection(); this._resentTo = new EmailAddressCollection(); this._comments = string.Empty; this._contentDescription = string.Empty; this._contentId = string.Empty; this._inReplyTo = string.Empty; this._messageId = string.Empty; this._received = string.Empty; this._references = string.Empty; this._resentMessageId = string.Empty; this._subject = string.Empty; this._text = string.Empty; this._textEncoding = Encoding.UTF8; this._to = new EmailAddressCollection(); this._importance = MailImportance.Normal; }
public Attachment(string diskFilename, string contentId, Net.Common.ContentType contentType, string attachmentDirectory, ulong size) { if (attachmentDirectory == null) { throw new ArgumentException("attachmentDirectory cannot be null or empty", "attachmentDirectory"); } if (contentType == null) { throw new ArgumentNullException("contentType"); } if (diskFilename == null) { throw new ArgumentNullException("diskFilename"); } this.TransferFilename = diskFilename; this._diskFilename = diskFilename; this._attachmentDirectory = attachmentDirectory; this._size = size; this._contentId = contentId; this._contentType = contentType; }
public Attachment() { this._contentType = new Net.Common.ContentType("application", "octet-stream"); }