public Attachment(string fileName, ContentType contentType) : base(fileName, contentType) { if ((contentType.Name == null) || (contentType.Name == string.Empty)) { this.Name = AttachmentBase.ShortNameFromFile(fileName); } else { this.Name = contentType.Name; } base.MimePart.ContentDisposition = new System.Net.Mime.ContentDisposition(); }
public Attachment(string fileName, string mediaType) : base(fileName, mediaType) { this.Name = AttachmentBase.ShortNameFromFile(fileName); base.MimePart.ContentDisposition = new System.Net.Mime.ContentDisposition(); }