EmailAttachment
Namespace: Proffer.Email.Internal
A simpl email attachment file.
public class EmailAttachment : Proffer.Email.IEmailAttachment
Inheritance Object → EmailAttachment
Implements IEmailAttachment
Properties
FileName
Gets or sets the file name.
public string FileName { get; set; }
Property Value
Data
Gets or sets the file content.
public Byte[] Data { get; set; }
Property Value
MediaType
Gets or sets the media type.
public string MediaType { get; set; }
Property Value
MediaSubtype
Gets or sets the media subtype.
public string MediaSubtype { get; set; }
Property Value
ContentType
Gets the content-type.
public string ContentType { get; }
Property Value
Constructors
EmailAttachment()
Initializes a new instance of the EmailAttachment class.
public EmailAttachment()
EmailAttachment(String, Byte[], String)
Initializes a new instance of the EmailAttachment class.
public EmailAttachment(string fileName, Byte[] data, string contentType)
Parameters
fileName
String
The file name.
data
Byte[]
The file content.
contentType
String
The content-type.
EmailAttachment(String, Byte[], String, String)
Initializes a new instance of the EmailAttachment class.
public EmailAttachment(string fileName, Byte[] data, string mediaType, string mediaSubtype)
Parameters
fileName
String
The file name.
data
Byte[]
The file content.
mediaType
String
The media type.
mediaSubtype
String
The media subtype.