26 base.MimePart.ContentType.Name =
value;
67 : base(fileName, mediaType)
74 : base(fileName, contentType)
76 if (
string.IsNullOrEmpty(contentType.
Name))
88 : base(contentStream, null, null)
95 : base(contentStream, null, mediaType)
102 : base(contentStream, contentType)
117 base.MimePart.ContentType.Name =
_name;
127 base.PrepareForSending(allowUnicode);
134 attachment.Name = name;
142 attachment.Name = name;
150 attachment.Name = contentType.
Name;
static ? string GetFileName(string? path)
void SetContentFromString(string content, ContentType contentType)
static Attachment CreateAttachmentFromString(string content, string? name, Encoding? contentEncoding, string? mediaType)
void SetContentTypeName(bool allowUnicode)
Attachment(Stream contentStream, string? name, string? mediaType)
Attachment(string fileName, ContentType contentType)
Attachment(string fileName, string? mediaType)
static Attachment CreateAttachmentFromString(string content, string? name)
override void PrepareForSending(bool allowUnicode)
Attachment(string fileName)
Attachment(Stream contentStream, ContentType contentType)
ContentDisposition? ContentDisposition
static Attachment CreateAttachmentFromString(string content, ContentType contentType)
Attachment(Stream contentStream, string? name)
static bool IsAscii(string value, bool permitCROrLF)
static string EncodeHeaderValue(string value, Encoding encoding, bool base64Encoding)
static bool ShouldUseBase64Encoding(Encoding encoding)
static Encoding DecodeEncoding(string value)
static string DecodeHeaderValue(string value)
static Encoding GetEncoding(int codepage)