Click or drag to resize

IMail Methods

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 methodCheckDKIMSignature(DKIMValidationConfiguration)
Verifies the DKIM (DomainKeys Identified Mail) digital signature on this message. Queries DNS server to get the public key.
Public methodCheckDKIMSignature(RSACryptoServiceProvider, DKIMValidationConfiguration)
Verifies the DKIM (DomainKeys Identified Mail) digital signature on this message.
Public methodCheckSignature(Boolean)
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 methodCheckSignature(SignatureValidationConfiguration)
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(ListX509Certificate2)
Decrypts the message. Searches through specified certificates and My certificate store to find appropriate certificate.
Public methodDecrypt(X509Certificate2)
Decrypts the message using specified certificate for decryption. Uses the specified certificate and My certificate store to find appropriate certificate.
Public methodDecrypt(MimeConfiguration)
Decrypts the message using specified MIME and S/MIME configuration.
Public methodDecrypt(SMIMEConfiguration)
Decrypts the message using specified S/MIME configuration.
Public methodDKIMSign(ListDKIMSignatureConfiguration)
Signs this message with multiple DKIM (DomainKeys Identified Mail) signatures.
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 methodEstimateTransportSize
Gets the estimated transport size of this message.
Public methodExtractAttachmentsFromInnerMessages
Extracts attachments from this message and all attached messages (MimeRfc822 objects with MessageRfc822 content type).
Public methodExtractSigned
Extracts signed message.
Public methodExtractSigned(MimeConfiguration)
Extracts signed message using specified MIME and S/MIME configuration.
Public methodExtractSigned(SMIMEConfiguration)
Extracts signed message using specified S/MIME configuration.
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 methodGetBodyAsHtml(Boolean)
Returns body in HTML format. If IsHtml is false this method uses Text property to create valid HTML. When inlineVisuals is set to true, all visual elements are inlined using 'data:' URI scheme.
Public methodGetBodyAsText
Public methodGetBodyAsText(Boolean)
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 methodGetReadReceiptAddresses
Gets addresses to which read receipt should be send. It uses , NotificationTo and XConfirmReadingTo header. Duplicates are removed. It returs an empty list, if read receipt was not requested.
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 methodGetTextFromRtf
Extracts plain text from Rtf. 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
Removes all attachments (NonVisuals) and visual elements from this email. Same as invoking RemoveAttachments(new AttachmentRemoverConfiguration()).
Public methodRemoveAttachments(AttachmentRemoverConfiguration)
Removes attachments and visual elements from this email, according to configuration settings.
Public methodRender
Renders mail message using eml format. BCC header is not rendered.
Public methodRender(Stream)
Render mail message using eml format to specified stream. BCC header is rendered.
Public methodRender(AddressHeaderRenderMode)
Renders mail message using eml format.
Public methodRender(Stream, AddressHeaderRenderMode)
Render mail message using eml format to specified stream.
Public methodRenderEml Obsolete.
Renders mail message using eml format. BCC header is not rendered.
Public methodRenderEml(Boolean) Obsolete.
Renders mail message using eml format.
Public methodReplaceAttachments
Replaces all attachments (NonVisuals) and visual elements with text indicating that attachment/visual was removed.
Public methodReplaceAttachments(AttachmentReplacerConfiguration)
Replaces attachments and visual elements with text indicating that attachment/visual was removed, according to configuration settings.
Public methodReply
Creates ReplyBuilder configured to reply to this email.
Public methodRequestReadReceipt
This method copies From or ReplyTo addresses to all read receipts lists. Read receipts are stored using NotificationTo, ReturnReceiptTo and XConfirmReadingTo headers.
Public methodReSignWith(X509Certificate2)
Computes the signature again.
Public methodReSignWith(SignatureConfiguration)
Computes the signature again.
Public methodSave
Saves email using eml format to specified file. BCC header is rendered.
Public methodSaveHtmlAs(String)
Saves HTML version of the message as regular HTML file. Saves all visual elements as files to the same folder. If the message is plain text only, this method uses GetBodyAsHtml to create HTML from plain text.
Public methodSaveHtmlAs(String, Boolean)
Saves HTML version of the message as regular HTML file. When inlineVisuals is set to true: all visual elements are inlined using data: URI scheme, instead of being saved to disk. If the message is plain text only, this method uses GetBodyAsHtml to create HTML from plain text.
Public methodToBuilder
Creates new, fully initialized MailBuilder instance, with all data imported from this email object.
Top
See Also