2using System.Collections.Generic;
14 private Priority priority = Priority.Normal;
15 private DateTimeOffset? date =
null;
16 private string contentId =
null;
17 private string contentLocation =
null;
18 private string contentTransferEncoding =
null;
19 private string contentType =
null;
20 private string subject =
null;
21 private string messageId =
null;
22 private string clientName =
null;
23 private string remoteEndpoint =
null;
24 private double? mimeVersion =
null;
25 private Encoding contentTypeEncoding =
null;
26 private MailAddress fromMail =
null;
27 private MailAddress fromHeader =
null;
28 private MailAddress sender =
null;
29 private MailAddress[] recipients =
null;
30 private KeyValuePair<string, string>[] allHeaders =
null;
31 private KeyValuePair<string, string>[] unparsedHeaders =
null;
32 private byte[] untransformedBody =
null;
33 private byte[] transformedBody =
null;
34 private object decodedBody =
null;
35 private MailAddress[] to =
null;
36 private MailAddress[] cc =
null;
37 private MailAddress[] bcc =
null;
38 private MailAddress[] replyTo =
null;
47 get => this.mimeVersion;
48 set => this.mimeVersion = value;
54 public Priority Priority
57 set => this.priority = value;
63 public DateTimeOffset?
Date
66 set => this.date = value;
74 get => this.contentId;
75 set => this.contentId = value;
83 get => this.contentLocation;
84 set => this.contentLocation = value;
94 get => this.contentTransferEncoding;
95 set => this.contentTransferEncoding = value;
105 get => this.contentType;
106 set => this.contentType = value;
115 set => this.subject = value;
123 get => this.fromMail;
124 set => this.fromMail = value;
132 get => this.fromHeader;
133 set => this.fromHeader = value;
142 set => this.sender = value;
150 get => this.recipients;
151 set => this.recipients = value;
159 get => this.allHeaders;
160 set => this.allHeaders = value;
168 get => this.unparsedHeaders;
169 set => this.unparsedHeaders = value;
177 get => this.untransformedBody;
178 set => this.untransformedBody = value;
188 get => this.transformedBody;
189 set => this.transformedBody = value;
199 get => this.decodedBody;
200 set => this.decodedBody = value;
206 public MailAddress[]
To
209 set => this.to = value;
215 public MailAddress[]
Cc
218 set => this.cc = value;
227 set => this.bcc = value;
236 set => this.replyTo = value;
244 get => this.messageId;
245 set => this.messageId = value;
253 get => this.contentTypeEncoding;
254 set => this.contentTypeEncoding = value;
262 get => this.inlineObjects;
263 set => this.inlineObjects = value;
271 get => this.attachments;
272 set => this.attachments = value;
280 get => this.clientName;
281 set => this.clientName = value;
289 get => this.remoteEndpoint;
290 set => this.remoteEndpoint = value;
Represents content embedded in other content.
Represents one message received over SMTP
string MessageID
Message-ID.
object DecodedBody
Decoded body. ContentType defines how TransformedBody is transformed into DecodedBody.
byte[] TransformedBody
Transformed body. ContentTransferEncoding defines how UntransformedBody is transformed into Transform...
string ContentId
Content ID of message, if defined
MailAddress[] To
Recipients, if defined by To mail headers.
DateTimeOffset? Date
Date of message, if defined
MailAddress[] Cc
Recipients, if defined by Cc mail headers.
MailAddress FromMail
From address, as specified by the client to initiate mail transfer.
MailAddress FromHeader
From address, as specified in the mail headers.
MailAddress[] Recipients
Recipients of message, as defined during initiation of transfer.
MailAddress[] ReplyTo
Return addresses, if defined by Reply-To mail headers.
string ContentTransferEncoding
Content Transfer Encoding of message, if defined. Affects how UntransformedBody is transformed into T...
EmbeddedContent[] Attachments
Any attachments, if specified.
MailAddress[] Bcc
Recipients, if defined by Bcc mail headers.
KeyValuePair< string, string >[] AllHeaders
All mail headers provided by client.
string ContentType
Content Type of message, if defined. Affects how TransformedBody is transformed into DecodedBody.
double? MimeVersion
MIME Version, if defined
string ClientName
Client name, as provided by the HELO or EHLO commands.
string Subject
Subject of message, if defined
KeyValuePair< string, string >[] UnparsedHeaders
Headers in AllHeaders that have not been parsed.
string RemoteEndpoint
Remote endpoint of client.
EmbeddedContent[] InlineObjects
Any inline objects, if specified.
MailAddress Sender
Sender, as specified in the mail headers.
Encoding ContentTypeEncoding
Content-Type encoding, if specified in the Content-Type header field.
string ContentLocation
Content Location of message, if defined
byte[] UntransformedBody
Raw, untrasnformed body of message.