The IMail type exposes the following members.

Methods

  NameDescription
Public methodCheckDKIMSignature()()()()
Verifies the DKIM (DomainKeys Identified Mail) digital signature on this message. Queries DNS server to get the public key.
Public methodCheckDKIMSignature(RSACryptoServiceProvider)
Verifies the DKIM (DomainKeys Identified Mail) digital signature on this message.
Public methodCheckSignature
Verifies the digital signatures on the signed CMS/PKCS #7 email message and, optionally, validates the signers' certificates. Checks also if the content was signed by the person that sent it.
Public methodDecrypt()()()()
Decrypts the message. Searches through My certificate store to find appropriate certificate. You can use SMIMEConfiguration to specify certificates and automatic email decryption.
Public methodDecrypt(List<(Of <<'(X509Certificate2>)>>))
Decrypts the message. Searches through specified certificates and My certificate store to find appropriate certificate. You can use SMIMEConfiguration to specify certificates and automatic email decryption.
Public methodDecrypt(X509Certificate2)
Decrypts the message using specified certificate for decryption. Searches through specified certificate and My certificate store to find appropriate certificate. You can use SMIMEConfiguration to specify certificates and automatic email decryption.
Public methodDKIMSign(RSACryptoServiceProvider, DKIMSignatureInfo)
Signs this message using DKIM (DomainKeys Identified Mail) signature.
Public methodDKIMSign(RSACryptoServiceProvider, String, String)
Signs this message using DKIM (DomainKeys Identified Mail) signature.
Public methodForward
Creates ForwardBuilder configured to forward this email.
Public methodGetBodyAsHtml
Returns body in HTML format. If IsHtml is false this method uses Text property to create valid HTML.
Public methodGetBodyAsText
Returns body in plain text format. If IsText is false this method uses GetTextFromHtml()()()() method to extract plain text from Html property.
Public methodGetEnvelopedCms
Gets the EnvelopedCms object for encrypted emails.
Public methodGetGenericPriority
Gets message priority. It checks following headers in the specified order: Priority, Importance, XPriority.
Public methodGetSignedCms
Gets the SignedCms object for signed emails.
Public methodGetTextFromHtml
Extracts plain text from Html. This text may be different from what is actually stored in the email's Text property.
Public methodPriorityHigh
Sets XPriority to 1, Priority to Urgent and Importance to High
Public methodPriorityLow
Sets XPriority to 5, Priority to NonUrgent and Importance to Low
Public methodRemoveAttachments()()()()
Creates MailBuilder with all visual and non-visual attachments removed. Same as invoking RemoveAttachments(true, true).
Public methodRemoveAttachments(Boolean, Boolean)
Creates MailBuilder with all visual and non-visual attachments removed according to parameter values.
Public methodRenderEml
Renders mail message.
Public methodReply()()()()
Creates ReplyBuilder configured to reply to this email.
Public methodReply(String) Obsolete.
Creates MailBuilder configured for reply. From, To and Cc collections are already set. Use SetHtmlData(String) or SetTextData(String) to specify reply body.
Public methodReply(MailBox) Obsolete.
Creates MailBuilder configured for reply. From, To and Cc collections are already set. Use SetHtmlData(String) or SetTextData(String) to specify reply body.
Public methodReplyToAll(String) Obsolete.
Creates MailBuilder configured for reply to all. From, To and Cc collections are already set. Use SetHtmlData(String) or SetTextData(String) to specify reply body.
Public methodReplyToAll(MailBox) Obsolete.
Creates MailBuilder configured for reply to all. From, To and Cc collections are already set. Use SetHtmlData(String) or SetTextData(String) to specify reply body.
Public methodRequestReadReceipt
This method copies From list to all read receipts lists. Read receipts are stored using , or header.
Public methodReSignWith
Computes the signature again. certificate used for signing.
Public methodSave
Saves email using eml format to specified file.
Public methodSaveHtmlAs
Saves HTML version of the message as regular HTML file, also saves all visual elements as files to the same folder.

Properties

  NameDescription
Public propertyAppointments
Gets the list of all appointments in this email message.
Public propertyAttachments
Gets the list of all attachments in this email message. It contains Attachment and Inline attachments.
Public propertyBcc
Gets the addresses 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 RenderEml()()()() is used.
Public propertyCc
Gets the addresses 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.
Public propertyDKIMSignatureInfo
Gets DKIM signature information.
Public propertyDocument
Gets the entire MimeDocument object associated with this email message.
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. Keys are always in lower case.
Public propertyHtml
Gets HTML version of this email message. 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 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 data.
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 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 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 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 URL list 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
Indicates if this email message needs to be decrypted. You can use Decrypt()()()(), Decrypt(List<(Of <<'(X509Certificate2>)>>)), Decrypt(X509Certificate2) to decrypt a message.
Public propertyNonVisuals
Gets the list of all non visual elements (ContentDisposition.Value equal to Attachment) in this email message.
Public propertyNotificationTo
Gets or sets the 'Disposition-Notification-To' header. This collection can be modified. May be empty.
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 propertyReceived
Gets the list of all 'received' headers added to this email message.
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 mail 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 propertyReturnReceiptTo
Gets or sets the 'Return-Receipt-To' header. This collection can be modified. May be empty.
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 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 bosy 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 data.
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.
Public propertyTo
Gets 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. 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 or sets the 'X-Confirm-Reading-To' header. This collection can be modified. May be empty.
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.

See Also