The MailBuilder type exposes the following members.

Constructors

  NameDescription
Public methodMailBuilder
Creates new MailBuilder object.

Methods

  NameDescription
Public methodAddAlternative
Adds alternative view for this message.
Public methodAddAppointment
Adds specified appointment as alternative view for this message.
Public methodAddAttachment(array<Byte>[]()[][])
Adds attachment with specified data.
Public methodAddAttachment(String)
Adds attachment. Data are read from the specified file.
Public methodAddAttachment(MimeData)
Adds attachment.
Public methodAddCustomHeader
Adds custom header that will be added to IMail object after creation.
Public methodAddVisual(array<Byte>[]()[][])
Adds visual object with specified data.
Public methodAddVisual(String)
Adds visual object. Data are read from the specified file.
Public methodAddVisual(MimeData)
Adds visual object.
Public methodClearAttachments Obsolete.
Clears attachments, visuals and non-visuals collections.
Public methodCreate
Creates new IMail using builder configuration.
Public methodCreateFromDocument
Creates new IMail using specified MIME document.
Public methodCreateFromEml
Creates new IMail using specified eml raw data string.
Public methodCreateFromEmlFile
Loads raw eml data from file and creates new IMail object.
Public methodDKIMSign(RSACryptoServiceProvider, DKIMSignatureInfo)
Signs the message using DKIM (DomainKeys Identified Mail) signature.
Public methodDKIMSign(RSACryptoServiceProvider, String, String)
Signs the message using DKIM (DomainKeys Identified Mail) signature.
Public methodEncryptWith
Encrypts the message using specified certificate. You can call this method multiple times to use several certificates for encryption. General rule is that both sender and receiver should be able to decrypt the message.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
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 methodRemove Obsolete.
Removes specified mime object from attachments, visuals and alternatives collections.
Public methodRequestReadReceipt
This method copies From list to all read receipts lists just before email is created (Create()()()() method). Read receipts are stored using , or header.
Public methodSetHtmlData Obsolete.
Sets HTML data. Extracts plain text from HTML and also sets plain text data.
Public methodSetTextData Obsolete.
Sets plain text data. Please remember that SetHtmlData(String) will override the plain text set by this method.
Public methodSignWith
Signs the message.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertyAlternatives
Gets the list of all alternative elements. You can use AddAlternative(MimeBase) or AddAppointment(Appointment) methods to add attachment to this collection.
Public propertyBcc
'Bcc' field (Blind Carbon copy), addresses of others who are to receive the message, tough the content of the message may not be directed at them. May be empty. You can use MailBox to represent single mailbox, or MailGroup to represent group of email addresses.
Public propertyCc
'Cc' field (Carbon copy), addresses of others who are to receive the message, even tough the content of the message may not be directed at them. May be empty. You can use MailBox to represent single mailbox, or MailGroup to represent group of email addresses.
Public propertyDate
'Date' field, message send date. May be null when not specified or in case of parsing error.
Public propertyFrom
'From' field, author(s) of the message. If empty, email-message is NOT RFC 2822 compliant.
Public propertyHtml
Gets or sets HTML version of the email. Extracts plain text from HTML and also sets Text property.
Public propertyImportance
'Importance' field, message's importance. It's easier to use PriorityHigh()()()() or PriorityLow()()()() methods then setting this field.
Public propertyInReplyTo
'In-Reply-To' field, message's parent, without surrounding brackets (< and >).
Public propertyMessageID
'Message-ID' field, message's id. Without surrounding brackets (< and >). If not set or set to null it is generated automatically.
Public propertyNonVisuals
Gets the list of all visual elements. You can use AddAttachment(MimeData) method to add attachment to this collection.
Public propertyNotificationTo
'Disposition-Notification-To' header. May be empty. It's easier to use RequestReadReceipt()()()() method then adding addresses to this property.
Public propertyPriority
'Priority' field, message's priority. It's easier to use PriorityHigh()()()() or PriorityLow()()()() methods then setting this field.
Public propertyReferences
'References' field, ids of the referenced messages. Without surrounding brackets (< and >).
Public propertyReplyTo
'Reply-to' field, mailbox(es) to which the author of the message suggests that replies be sent. May be empty. You can use MailBox to represent single mailbox, or MailGroup to represent group of email addresses.
Public propertyReturnReceiptTo
'Return-Receipt-To' field. May be empty. It's easier to use RequestReadReceipt()()()() method then adding addresses to this property.
Public propertySender
'Sender' field, mailbox of the agent responsible for the actual transmission. If 'Sender' is null use From property.
Public propertySensitivity
'Sensitivity' field, message's sensitivity.
Public propertySetDefaults
Gets or set the value indicating whether default values (message-id, date) should be set. Default is true.
Public propertySMIMEConfiguration
Gets S/MIME decrypt configuration (automatic decryption, certificates used for decryption)
Public propertySubject
'Subject' field, message's subject.
Public propertyText
Gets or sets plain text version of the email. Please remember that setting Html will override plain text.
Public propertyTo
'To' field, address(es) of the primary recipient(s) of the message. May be empty. You can use MailBox to represent single mailbox, or MailGroup to represent group of email addresses.
Public propertyVisuals
Gets the list of all non visual elements. You can use AddVisual(MimeData) method to add attachment to this collection.
Public propertyXConfirmReadingTo
'X-Confirm-Reading-To' field. May be empty. It's easier to use RequestReadReceipt()()()() method then adding addresses to this property.
Public propertyXPriority
'X-Priority' field (Outlook specific). Value ranges from "1" to "5" where "1" is the highest priority, "3" is normal, and "5" is the lowest priority. It's easier to use PriorityHigh()()()() or PriorityLow()()()() methods then setting this field.

See Also