MailBee.NET Objects 4.0

MailMessage Members

MailMessage overview

Public Static Methods

GetEncodedHeaderValue Encodes the value of the specified header.

Public Instance Constructors

MailMessage Constructor Initializes a new instance of the MailMessage class.

Public Instance Properties

Attachments Gets the AttachmentCollection object containing the attachments of the mail message.
Bcc Gets or sets the list of blind carbon copy (BCC) recipients of the message.
BodyHtmlText Gets or sets the HTML body of the message.
BodyParts Gets all the text bodies of the message.
BodyPlainText Gets or sets the plain-text body of the message.
Builder Gets or sets the options which affect how the mail message is built by MailBee.
Cc Gets or sets the list of carbon copy (CC) recipients of the message.
Charset Gets or sets the name of the charset which was used to compose the message.
ConfirmRead Gets or sets the e-mail address of an entity which should receive the read confirmation message.
ConfirmReceipt Gets or sets the e-mail address of an entity which should receive the delivery confirmation message (when the message gets into mailbox of the server).
ContentType Gets the content type of the message.
Date Gets or sets the date and the time when the mail message was composed.
DateReceived Gets the date and the time when the message was received by the server.
From Gets or sets the e-mail address of the message sender.
HasAttachments Indicates if the message has any attachments.
Headers Gets the collection of the message headers.
Importance Gets or sets the importance of the message.
IndexOnServer Gets the index of the mail message stored on the mail server.
IsEncrypted Indicates if the message is encrypted.
IsEntire Indicates if the message was received completely.
IsSigned Indicates if the message has a digital signature.
LastResult Gets the code of the last occurred error.
MailTransferEncodingHtml Gets or sets the transfer encoding of the HTML body of the message.
MailTransferEncodingPlain Gets or sets the transfer encoding of the plain-text body of the message.
Merge Gets the MailMerge object which can be used to perform mail merge using the current e-mail message as a template.
MessageID Gets or sets the Message-ID header of the message.
MimePartTree Gets the root MIME part of the message.
Organization Gets or sets the name of organization to which the sender of the message belongs.
Parser Gets or sets the options which affect how the MailMessage object is parsed.
PartCount Gets the number of parts of the composite message which is split into the several smaller mail messages.
PartIndex Gets the index of the current part in the sequence of parts of a composite message.
Priority Gets or sets the priority of the message.
RawHeader Gets the message header section exactly as it is contained in the message.
References Gets or sets the references of the message.
ReplyTo Gets or sets the list of the e-mail addresses where to send a reply to this message.
ReturnPath Gets the value of Return-Path header.
Sensitivity Gets or sets the sensitivity of the message.
Size Gets the size of the message in bytes.
SizeOnServer Gets the actual message size on the mail server.
Subject Gets or sets the subject of the message.
ThrowExceptions Gets or sets whether the MailMessage object will throw exceptions on errors.
TimeStamps Gets the collection of which represents the trace route of the message.
To Gets or sets the e-mail addresses of the primary recipients of the mail message.
UidOnServer Gets Unique-ID (UID) of the message in the mailbox on the server.
Version Gets the current version of MailBee.NET Objects.
XMailer Gets or sets the details about the software which was used to create the message.

Public Instance Methods

AppendChunk Adds a block of bytes to the source of the message.
AppendPartialMessage Adds the specified partial message to this message.
Clear Removes the specified elements from the message.
Clone Creates a copy of the message.
DeserializeOverloaded. Loads the message from the specified .XML file or from XML stream.
Dispose Removes the temporary folders and files that are associated with the mail message.
EncodeAllHeaders Encodes all message headers into the specified encoding.
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
ForwardAsAttachment Forwards a mail message as attached .EML file.
GetAllRecipients Gets the EmailAddressCollection object containing the e-mail addresses of all message recipients.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetHtmlAndSaveRelatedFilesOverloaded. Extracts the HTML body of the message and saves the attached inline pictures and other related files to disk, replaces their Content-ID's with file paths in the temporary location where they were saved, and returns the modified HTML body as a string.
GetMessageRawData Gets the source of the message as a byte array.
GetType (inherited from Object) Gets the Type of the current instance.
ImportRelatedFiles Adds all the related files (referenced in HTML part of the message) as inline attachments.
IsBodyAvail Indicates if the body of the specified format is present in the message.
LoadBodyTextOverloaded. Loads the contents of the specified file (or URI) into HTML or plain-text body.
LoadMessageOverloaded. Loads the message from a byte array, a stream, or a file.
MakePlainBodyFromHtmlBody Creates a plain text body from the existing HTML body of the message.
Reset Resets all the properties of the MailMessage object to the default values.
SaveHtmlAndRelatedFiles Saves the HTML body of the message and all inline pictures and other inline objects to disk.
SaveMessageOverloaded. Saves a message into the specified file or stream.
SerializeOverloaded. Saves the message into the specified .XML file or XML stream.
SetDateFromString Sets the date of the message creation as a string.
SetUniqueMessageID Sets a new unique value of Message-ID header and returns it.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Finalize Finalizes the instance of MailMessage object.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

MailMessage Class | MailBee.Mime Namespace | Attachment