Home » Documentation » MIMEMessage

MIMEMessage

The MIMEMessage object allows for easy manipulation of MIME messages.

Constructors

Name Description
Constructor  Initializes a new instance of the MIMEMessage class and optionally parses the specified string.
Arguments:
(void)
(Content)

Methods

Name Description
AddHeader  Adds a header with the specified string name and value arguments to this instance.
Arguments:
(Name, Value)
GetContentTransferEncoding  Returns the value of the 'Content-Transfer-Encoding' header for this instance.
GetHeader  Returns the value for the specified string header name for this instance.
Arguments:
(Name)
GetMediaBoundary  Returns the value of the 'boundary' header for this instance.
GetMediaCharacterSet  Returns the value of the 'charset' attribute for this instance.
GetMediaFileName  Returns the value of the 'name' attribute for this instance.
GetMediaSubType  Returns the media sub type value.
GetMediaType  Returns the media type value.
IsAttachment  Returns true if the 'Content-Disposition' header value is set to 'attachment', otherwise false is returned.
Parse  Parses the MIME data from the specified string into this instance.
Arguments:
(Content)
ParseBody  Parses the body portion of the MIME data from the specified string into this instance.
Arguments:
(Content, Decode)
ParseHeaders  Parses the header portion of the MIME data from the specified string into this instance.
Arguments:
(Content)
RemoveHeader  Removes a header from this instance with the specified string header name.
Arguments:
(Name)
SaveAs  Writes the contents of the message to a specified file.
Arguments:
(FilePath)
SaveBodyAs  Writes the contents of the message body to a specified file.
Arguments:
(FilePath)
SaveFileAs  Writes the contents of the FileBody to a specified file.
Arguments:
(FilePath)
ToString  Returns a string representation of the MIME message from this instance.

Properties

Name Description
Body  Stores the body contents for this instance.
FileBody  Stores the file body contents for this instance.
Headers  Stores all header contents for this instance.
Parts  Stores all MIMEMessage objects for this instance.
Preamble  Stores the preamble for this instance.
Are you a robot?
Your Email:
Create a Username:
Create a Password:
Forgot Password?
Validate Text: Captcha