Click or drag to resize

MailMessage Class

Represents an email message.
Inheritance Hierarchy
SystemObject
  GemBox.EmailMailMessage

Namespace:  GemBox.Email
Assembly:  GemBox.Email (in GemBox.Email.dll) Version: 13.0.35.1012
Syntax
public sealed class MailMessage

The MailMessage type exposes the following members.

Constructors
  NameDescription
Public methodMailMessage
Initializes a new instance of the MailMessage class.
Public methodMailMessage(String)
Initializes a new instance of the MailMessage class with specified sender.
Public methodMailMessage(MailAddress)
Initializes a new instance of the MailMessage class with specified sender.
Public methodMailMessage(String, String)
Initializes a new instance of the MailMessage class with specified sender and recipient addresses.
Public methodMailMessage(MailAddress, MailAddress)
Initializes a new instance of the MailMessage class with specified sender and recipient addresses.
Top
Properties
  NameDescription
Public propertyAttachments
Gets the attachments collection.
Public propertyBcc
Gets the 'Bcc' address collection.
Public propertyBodyHtml
Gets or sets the message HTML body.
Public propertyBodyText
Gets or sets the message text body.
Public propertyBodyTextCharset
Gets or sets the message text body charset.
Public propertyCalendars
Gets the calendars collection. Changes made to calendars retrieved through this property will NOT be synchronized with MailMessage.
Public propertyCc
Gets the 'Cc' address collection.
Public propertyDate
Gets or sets the message date.
Public propertyFrom
Gets the 'From' address collection.
Public propertyId
Gets or sets the message id.
Public propertyMimeEntity
Gets the underlying MIME entity.
Public propertyReplyTo
Gets the 'Reply-To' address collection.
Public propertySender
Gets or sets the sender address
Public propertySubject
Gets or sets the message subject.
Public propertyTo
Gets the 'To' address collection.
Top
Methods
  NameDescription
Public methodClone
Creates the copy of this MailMessage instance.
Public methodStatic memberLoad(String)
Loads the message from the specified file.
Public methodStatic memberLoad(Stream, MailMessageFormat)
Loads the message from the specified stream.
Public methodStatic memberLoad(String, MailMessageFormat)
Loads the message from the specified file.
Public methodSave(String)
Saves the message to a file.
Public methodSave(Stream, MailMessageFormat)
Saves the message to a stream.
Public methodSave(String, MailMessageFormat)
Saves the message to a file.
Top
See Also