private MailAddress[] HeaderToMailAddresses(string headerName) { return(MIMEDecoder.DecodeText(this.Headers.ValueOf(headerName)) .SplitAndTrim(',') .Select(a => new MailAddress(a)) .ToArray()); }
public SmtpAttachment(IEnumerable <byte> contentBytes, string name, string mediaType) { this.Name = MIMEDecoder.DecodeText(name); this.MediaType = mediaType; this.ContentBytes = contentBytes.ToArray(); }