EmailAttachment

Namespace: Proffer.Email.Internal

A simpl email attachment file.

public class EmailAttachment : Proffer.Email.IEmailAttachment

Inheritance ObjectEmailAttachment
Implements IEmailAttachment

Properties

FileName

Gets or sets the file name.

public string FileName { get; set; }

Property Value

String

Data

Gets or sets the file content.

public Byte[] Data { get; set; }

Property Value

Byte[]

MediaType

Gets or sets the media type.

public string MediaType { get; set; }

Property Value

String

MediaSubtype

Gets or sets the media subtype.

public string MediaSubtype { get; set; }

Property Value

String

ContentType

Gets the content-type.

public string ContentType { get; }

Property Value

String

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.