MIMEMessage
The MIMEMessage object allows for easy manipulation of MIME messages.
Constructors
|
Constructor
|
Initializes a new instance of the MIMEMessage class and optionally parses the specified string.
|
Methods
|
AddHeader
|
Adds a header with the specified string name and value arguments to this instance.
|
|
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.
|
|
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.
|
|
ParseBody
|
Parses the body portion of the MIME data from the specified string into this instance.
|
|
ParseHeaders
|
Parses the header portion of the MIME data from the specified string into this instance.
|
|
RemoveHeader
|
Removes a header from this instance with the specified string header name.
|
|
SaveAs
|
Writes the contents of the message to a specified file.
|
|
SaveBodyAs
|
Writes the contents of the message body to a specified file.
|
|
SaveFileAs
|
Writes the contents of the FileBody to a specified file.
|
|
ToString
|
Returns a string representation of the MIME message from this instance.
|
Properties
|
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. |
|