Email Factory for .NET

MimeMessage Members

MimeMessage overview

Public Static Methods

RemoveCharRemoves any instance of specified character in string.

Protected Static Fields

COLON Represents byte value for colon.
CR Represents byte value for carriage return.
CRLF Represents String value for carriage return line feed combination.
EQUALS Represents byte value for equals sign.
LF Represents byte value for line feed.
QUESTION_MARK Represents byte value for question mark.
SEMI_COLON Represents byte value for semi-colon.
SPACE Represents byte value for space.
TAB Represents byte value for tab.

Public Instance Constructors

MimeMessage Overloaded. Initializes a new instance of the MimeMessage class.

Public Instance Properties

ContentTypeGets/Sets the Content-Type.
MessageGets/Sets the message.

Public Instance Methods

AddHeaderOverloaded. Adds MIME header to this
MimeMessage
.
AddPartAdds part to multipart
MimeMessage
.
AddReplaceHeaderOverloaded. Adds MIME header to this
MimeMessage
, replacing existing header if found.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetBodyGets decoded message body using character encoding specified in charset attribute of Content-Type message header. If no character encoding is defined then US-ASCII character encoding is used.
GetBodyDataGets decoded message body as bytes.
GetBoundaryGets boundary used in this
MimeMessage
.
GetBoundaryWithoutQuotesGets boundary used in this
MimeMessage
.
GetContentTransferEncodingGets the value of the Content-Transfer-Encoding header for this
MimeMessage
. The Content-Transfer-Encoding header indicates the encoding method used for the message body. Typical values are BASE64, UUENCODE, 7BIT, 8BIT and QUOTED-PRINTABLE.
GetContentTypeGets the content-type of this
MimeMessage
.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetHeaderReturns named header specified by
name
.
GetHeadersOverloaded. Gets all mime headers for this
MimeMessage
.
GetHeaderValueGets value for header specified by
name
.
GetMessageGets contents of this
MimeMessage
. Contents include all MIME message headers, body and any parts.
GetPartGets specified part from this
MimeMessage
.
GetPartsGets parts of this
MimeMessage
.
GetRawBodyData Gets message body as bytes. The body will be returned as is.
GetType (inherited from Object)Gets the Type of the current instance.
RemoveHeaderRemoves specified header from this
MimeMessage
.
RemovePartRemoves specified
index
from parts array.
RemoveParts Removes all parts from array.
SetBodyOverloaded. Sets body of this
MimeMessage
. Default system character encoding is used to convert the body to bytes.
SetContentTypeSets the content-type of this
MimeMessage
.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

changed Tracks whether this MimeMessage has changed.
characterEncoding The character encoding used in this MimeMessage.
contentType The content type used in this MimeMessage.
definedBody The message body as defined using the setBody method.
headerIndex Tracks all MIME headers
headers The set of MimeHeader for this MimeMessage.
message The message contents as provided in the MimeMessage constructor.
messageBody The message body as parsed in the MimeMessage constructor.
parts The MIME parts for this MimeMessage.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

MimeMessage Class | Jscape.Email Namespace