MailMessage Type
Represents an e-mail message.
Remarks
This object is a container for an e-mail message.
A message consists of a header and a body. The header, in turn, consists of several header fields. The names, syntax, and expected contents of the header fields are standardized.
The message body can contain anything you like (a message may not even have a body at all).
Fields
AttachmentCount int |
Returns the number of attachments in this message. | ||||||||||
Bcc String |
The contents of the BCC header field. The BCC header field contains the addresses of secondary recipients of the message whose addresses are not to be revealed to other recipients of the message. Mail servers remove the BCC header when processing the message and use its value for dispatching the message only. | ||||||||||
Cc String |
The value of the CC header field. The CC field contains the addresses of secondary recipients of the message. | ||||||||||
Comments String |
Contains additional information about the message body. | ||||||||||
Date String |
The date and time when the message entered the mail delivery system. This field contains the date and time at which the creator of the message posted the message to the mail delivery system. The date is returned and accepted in UTC time zone. | ||||||||||
DeliveryReceipt boolean |
Enables delivery notification. | ||||||||||
From String |
Contains the value of the From header field. This field contains the address(es) of the message author(s). If the actual sender is not the author of the message, use Sender to specify the sender separately. | ||||||||||
HtmlText String |
The HTML version of the message. | ||||||||||
ID String |
The contents of the Message-ID header field. This field contains a unique identifier that refers to a particular version of this message. | ||||||||||
InReplyTo String |
The value of the In-Reply-To header field. A reply message should have the "In-Reply-To:" header field which may be used to identify the message (or messages) to which the new message is a reply. | ||||||||||
Keywords String |
The value of the Keywords header field. This field can be used to add some important words and phrases that might be useful for the recipient. | ||||||||||
Mailer String |
The name of the software that was used to send the message. | ||||||||||
PlainText String |
The plain text version of the message. | ||||||||||
Priority int |
Specifies the message priority. Available options:
| ||||||||||
ReadReceipt boolean |
Enables a read notification. | ||||||||||
References String |
The value of the References header field. A reply message should include a "References:" header field which may be used to identify the "conversation thread". If the initial message is a reply itself, the References of the reply contain combined content of its "References:", "InReplyTo:" and "MessageID:" fields, subject to their presence in the original message. | ||||||||||
ReplyTo String |
The value of the Reply-To header field. This field contains the addresses to which the replies to this message should be sent. This field is optional. If not specified, the replies must be sent to the addresses specified in the From field. | ||||||||||
ReturnPath String |
The value of the Return-Path header field. This field contains the address to which this message shall be returned in case of unsuccessful delivery. | ||||||||||
Sender String |
The value of the Sender header field. This field specifies the mailbox of the agent responsible for the actual transmission of this message. If the originator of the message can be indicated by a single mailbox and both the author and the transmitter are identical, the "Sender:" field is deemed excessive and should not be used. | ||||||||||
SendTo String |
The value of the To header field. This field specifies the address(es) of the primary recipient(s) of the message. | ||||||||||
Subject String |
Contains the subject field of this message. |
Constructors
public MailMessage();
Creates a new empty mail message object.