Click or drag to resize

IMail Properties

The IMail type exposes the following members.

Properties
  NameDescription
Public propertyAlternatives
Gets the list of alternative elements in this email message. E.g. MimeCalendar if message is an appointment invitation.
Public propertyAppointments
Gets the list of all appointments in this email message.
Public propertyAttachments
Gets the list of all attachments in this email message. Including Alternatives, Visuals (Inline) and NonVisuals (Attachment).
Public propertyBcc
Gets the address(es) of others who are to receive this email message ('BCC', Blind Carbon Copy header), even tough the content of the message may not be directed at them. In this collection you can find MailBox which represents single mailbox, or MailGroup which represents group of email addresses. This collection can be modified. May be empty. BCC header is not rendered when Render method is used, however it is rendered when message is saved using Save(String) method.
Public propertyCc
Gets the address(es) of others who are to receive this email message ('CC', Carbon Copy header), even tough the content of the message may not be directed at them. In this collection you can find MailBox which represent single mailbox, or MailGroup which represents group of email addresses. This collection can be modified. May be empty.
Public propertyDate
Gets or sets the send date of this email message ('Date' header). May be null in case of parsing error or when 'Date' header is missing.
Public propertyDeliveryStatuses
Gets the list of all Delivery Status Notifications (DSNs) in this email message.
Public propertyDKIMSignatureInfo
Gets DKIM signature information from the first 'DKIM-Signature' header.
Public propertyDKIMSignatureInfos
Gets DKIM signature information.
Public propertyDocument
Gets the entire MimeDocument object associated with this email message.
Public propertyEnvelopeFrom
Gets or sets the address of the sender taken from the SMTP envelope (SMTP "MAIL FROM").
Public propertyEnvelopeTo
Gets or sets the address of the recipient taken from the SMTP envelope (SMTP "RCTP FROM").
Public propertyFrom
Gets the author(s) of this email message ('From' header). This collection can be modified. If it's empty, email message is NOT RFC 2822 compliant.
Public propertyHeaders
MIME headers collection for root MIME entity.
Public propertyHtml
Public propertyHtmlData
Gets the object representing 'text/html' body of this email message. May be null if no HTML data is present. You may use Html as a shortcut to retrieve HTML text.
Public propertyHtmlDataString Obsolete.
Gets HTML data of this email message. You can use GetTextFromHtml method to extract plain text from HTML content.
Public propertyImportance
Gets or sets the importance of this email message ('Importance' header). Consider using GetGenericPriority as it also checks Priority and XPriority properties.
Public propertyInReplyTo
Gets or sets the message-id of the parent email message ('In-Reply-To' header). Does not contain surrounding brackets (< and >).
Public propertyIsDKIMSigned
Indicates if this email message has been DKIM (DomainKeys Identified Mail) signed.
Public propertyIsEncrypted
Indicates if this email message has been encrypted.
Public propertyIsForward
Gets the boolean value indicating if this message was forwarded.
Public propertyIsHtml
Returns true if body of this email message is specified in HTML format. You can use Html property to access HTML version of the body.
Public propertyIsPartial
Gets the boolean value indicating if this message was split (MIME document root is of type MimeMessagePartial).
Public propertyIsReply
Gets the boolean value indicating if this message is a reply.
Public propertyIsRtf
Returns true if body of this email message is specified in RTF format. You can use Rtf property to access RTF version of the body.
Public propertyIsSigned
Indicates if this email message has been signed.
Public propertyIsText
Returns true if body of this email message is specified in plain text format. You can use Text property to access plain text version of the body.
Public propertyListArchive
Gets URL list of mailing list archive ('List-Archive' header). This collection can be modified. May be empty.
Public propertyListHelp
Gets URL list for mailing list information ('List-Help' header). This collection can be modified. May be empty.
Public propertyListID
Gets or sets mailing list identifier ('List-Id' header).May be null.
Public propertyListOwner
Gets URL list for mailing list owner's mailbox ('List-Owner' header). This collection can be modified. May be empty.
Public propertyListPost
Gets URL list for mailing list posting ('List-Post' header). This collection can be modified. May be empty.
Public propertyListSubscribe
Gets URL list for mailing list subscription ('List-Subscribe' header). This collection can be modified. May be empty.
Public propertyListUnsubscribe
Gets list of URLs ("http://www.example.com/unsubscribe") or emails ("mailto:unsubscribe@lexample.com") for mailing list unsubscription ('List-Unsubscribe' header). This collection can be modified. May be empty.
Public propertyMessageID
Gets or sets id of this email message ('Message-ID' header). Does not include surrounding brackets (< and >).
Public propertyMimeVersion
Gets or sets MIME version of this email message ('MIME-version' header).
Public propertyNeedsDecryption
Public propertyNeedsSignedExtraction
Indicates if this email message needs signed message extraction.
Public propertyNonVisuals
Gets the list of all non visual elements (ContentDisposition.Value equal to Attachment) in this email message. E.g. Attached data files.
Public propertyNotificationTo
Gets the disposition notifications addresses ('Disposition-Notification-To' header). This collection can be modified. May be empty.
Public propertyPartialId
Gets the unique identifier to be used to match the parts together.
Public propertyPriority
Gets or sets the priority of this email message ('Priority' header). Consider using GetGenericPriority as it also checks Importance and XPriority properties.
Public propertyRcptTo
Gets or sets the address of the recipient taken from the SMTP envelope (SMTP "RCTP FROM").
Public propertyReadReceipts
Gets the list of all Message Disposition Notifications (MDNs) in this email message.
Public propertyReceived
Gets the list of all 'received' headers added to this email message. Last item in this list is the one added earliest.
Public propertyReferences
Gets the ids of the referenced email messages. Does not include surrounding brackets (< and >). This collection can be modified. May be empty.
Public propertyReplyTo
Gets the address(es) to which the author of this email message suggests that replies be sent ('Reply-to' header). In this collection you can find MailBox which represents single mailbox, or MailGroup which represents group of email addresses. This collection can be modified. May be empty.
Public propertyReturnPath
Gets or sets return path address ('Return-Path' header). Does not include brackets (< and >).
Public propertyReturnReceiptTo
Gets return receipt addresses ('Return-Receipt-To' header). This collection can be modified. May be empty.
Public propertyRtf
Gets RTF version of this email message. RTF may be extracted from a TNEF attachment (winmail.dat) a proprietary e-mail attachment format used by Microsoft Outlook and Microsoft Exchange Server.
Public propertyRtfData
Gets the object representing 'text/rtf' or 'application/rtf' body of this email message. May be null if no RTF data is present. You may use Rtf as a shortcut to retrieve RTF text.
Public propertySender
Gets or sets mailbox of the agent responsible for the actual transmission of this email message ('Sender' header). If 'Sender' is null, it returns first item from From collection.
Public propertySenderHeader
Gets or sets mailbox of the agent responsible for the actual transmission of this email message ('Sender' header).
Public propertySensitivity
Gets or sets the sensitivity of this email message ('Sensitivity' header)
Public propertySubject
Gets or sets the subject of this email message ('Subject' header). May be null.
Public propertyText
Gets plain text version of this email message. For some HTML emails plain text may be not defined, you can use GetTextFromHtml method to extract plain text from HTML content. You can also use GetBodyAsText or GetBodyAsHtml to obtain body in a specific format.
Public propertyTextData
Gets the object representing 'text/plain' body of this email message. May be null if no text/plain data is present. You may use Text as a shortcut to retrieve plain text.
Public propertyTextDataString Obsolete.
Gets plain text data from this email message. For some HTML emails plain text may be not defined, you can use GetTextFromHtml method to extract plain text from HTML content. You can also use GetBodyAsText or GetBodyAsHtml to obtain body in a specific format.
Public propertyTo
Gets the address(es) of the primary recipient(s) of this email message ('To' header). In this collection you can find MailBox which represents single mailbox, or MailGroup which represents group of email addresses. This collection can be modified. May be empty.
Public propertyVCards
Gets the list of all vCards in this email message.
Public propertyVisuals
Gets the list of all visual elements (ContentDisposition.Value equal to Inline) in this email message. E.g. Images embedded inside HTML email. You can use Visuals[string cid] to find the picture embedded in the HTML body using its content id ('Content-ID' header).
Public propertyXConfirmReadingTo
Gets confirm reading addresses ('X-Confirm-Reading-To' header). This collection can be modified. May be empty.
Public propertyXEnvelopeFrom
Gets or sets the address of the sender taken from the SMTP envelope (SMTP "MAIL FROM").
Public propertyXMsg2Mime
Gets or sets the 'X-Msg2Mime' value. It represents information if this email was created from MSG data.
Public propertyXMsg2MimeClientSubmitTime
Gets or sets the 'X-Msg2Mime-Client-Submit-Time' value. It represents PR_CLIENT_SUBMIT_TIME. May be null.
Public propertyXMsg2MimeCreationTime
Gets or sets the 'X-Msg2Mime-Creation-Time' value. It represents PR_CREATION_TIME. May be null.
Public propertyXMsg2MimeMessageDeliveryTime
Gets or sets the 'X-Msg2Mime-Message-Delivery-Time' value. It represents PR_MESSAGE_DELIVERY_TIME. May be null.
Public propertyXPriority
Gets or sets the X-Priority of this email message ('X-Priority' header) (Outlook specific). Value ranges from "1" to "5" where "1" is the highest priority, "3" is normal, and "5" is the lowest priority. Consider using GetGenericPriority as it also checks Priority and Importance properties.
Public propertyXRcptTo
Gets or sets the address of the recipient taken from the SMTP envelope (SMTP "RCTP FROM").
Public propertyXTnef2MimeMessageClass
Gets or sets the 'X-Tnef2Mime-MessageClass' value. May be null.
Top
See Also