Mail Message Structure

<< Fare clic per visualizzazione il sommario >>

Percorso:  API di piattaforma > Altri servizi > Mail > Strutture dati >

Mail Message Structure

A mail message is represented by a Dictionary <string, object> containing the following fields.

 

Parameters

Name

Description

Type

Optional

Bcc

Contains a string for each hidden recipient; each recipient can be specified with display name and address (“John Doe <jdoe@gmail.com>”) or the address only (“jdoe@gmail.com”).

ArrayValue

Y

BodyHtml

The HTML body of the message, or an empty string if it has no HTML body.

String

Y

BodyText

The text body of the message, or an empty string if it has no text body.

String

Y

CC

Contains a string for each additional recipient; each recipient can be specified with display name and address (“John Doe <jdoe@gmail.com>”) or the address only (“jdoe@gmail.com”).

ArrayValue

Y

Date

The origination date of this message (original time); this specifies the date and time at which the creator of the message indicated that the message was complete and ready to enter the mail delivery system; if origination date is not available, the date specified by the first ‘Received’ header is given.

DateTime

Y

Envelopeld

The envelope identifier; it allows the sender of a message to identify the transaction for the DNS was issued; the envelope ID is not a part of a mail message and is not saved with it; its purpose is to be used while sending the message.

String

Y

From

The sender of the message can be specified with display name and address (“John Doe <jdoe@gmail.com>”) or the address only (“jdoe@gmail.com”).

String

 

Headers

List containing a Dictionary<string, object> for each header of the message; each Dictionary contains the following fields:

Name (String) -> the name of the headerValue (String) -> the value of the header;

Unparsable (Boolean) -> true if the header was unparsable, otherwise false;

Raw (String) -> the raw text representation of the header.

ArrayValue

Y

InReplyTo

A List of strings containing the identifiers of messages to which the message is a reply

ArrayValue

Y

MessageId

The message identifier. While the UniqueId is created by the mail server and is part of the message envelope, the MessageId is created by the sender and is one of the message headers. Mail message formats: MIME format is an XML containing the whole message, including any attachment, and is used by Outlook Express to save files with the .eml extension. Outlook saves message files in a proprietary format with the .msg extension.

String

Y

Priority

The priority of the message:

0: Low priority

1: Normal priority

2: High priority

Int32

Y

Received

The received date of this message (local time).

DateTime

Y

ReplyTo

Contains a string for each recipient that should receive replies to the message; each recipient can be specified with display name and address (“John Doe <jdoe@gmail.com>”) or the address only (“jdoe@gmail.com”).

ArrayValue

Y

Subject

A short string identifying the topic of the message.

String

Y

To

Contains a string for each primary recipient of the message; each recipient can be specified with display name and address (“John Doe <jdoe@gmail.com>”) or the address only (“jdoe@gmail.com”).

ArrayValue

 

 

Download Mail Message data structure.