Mail Message (MIME)
Class aprMIME
Description
The aprMIME Class enables the developer to easily manage mail messages. It can be used to create new messages as well as parse an existing message. The aprMIME can be used with simple RFC 822 compliant messages, as well as RFC 1521 MIME compliant messages with multipart attachments.
When a message is parsed, it is broken into parts which each consist of two sections. The first is a header section which describes the format of the data and how it should be represented to the user. The second section is the data itself. A typical mail message without file attachments has one part, with the body of the message being the data. Messages with attachments have multiple parts, each with a header describing the type of data (for example, an executable program, a graphics image, and so on). The library can be then used to extract the data from the part and save it to a file on the local system, delete the part from the message, or add additional parts to the message (such as attaching a file).
|
Variables | ||
|
|
Holds the Last Error description | |
|
|
Logical for Enabling / Disabling additional Debug messages | |
|
|
Logical. Whether or not to include the Callstack in the Debug messages. | |
|
|
Holds the Last Error number | |
|
|
Handle to the New / Current Message | |
|
|
|
|
|
Methods | ||
|
|
Initializes an Instance of the aprMIME Class | |
|
|
Releases resources for the Instance of the aprMIME Class | |
|
|
|
|
|
|
Append text to the body of the current message part | |
|
|
Attach a file to the specified message | |
|
|
Attach a file to the message using the specified encoding method | |
|
|
Clear the body of the current message part | |
|
|
Compare text in the body of the current message part | |
|
|
Create a new message | |
|
|
Create a new message part for the specified message | |
|
|
Delete the specified message | |
|
|
Delete the specified header field from the message | |
|
|
Delete the specified message part | |
|
|
Export the the current message to a text file | |
|
|
Extract the file attachment from the current message part | |
|
|
Enumerate all header fields in the current message part | |
|
|
Return a standard RFC 822 formatted date string | |
|
|
Return the name of the file attachment for the current part | |
|
|
Return encoded digest of message's content | |
|
|
Return the length of the current message part content | |
|
|
Return the content type for a specified file | |
|
|
Return the first header field and value in the current message part | |
|
|
Return the multipart message boundary string | |
|
|
Return the date and time from the message header | |
|
|
Return the value of a specified header from the message | |
|
|
Returns the current message part index for the specified message. | |
|
|
Return the total number of message parts | |
|
|
Import a message from the specified text file | |
|
|
Return the MIME version from the message header | |
|
|
Return the next header field and value in the current message part | |
|
|
Import a message from the specified text file | |
|
|
Parse the specified text and add to the current message | |
|
|
Parse the specified RFC 822 formatted date string | |
|
|
Parse the specified text and add to message header | |
|
|
Clear the specified message, deleting all message parts | |
|
|
Specify a bitmask that describes current message export options | |
|
|
Set the last error code | |
|
|
Set the current date in the header for the specified message | |
|
|
Create or update a header field in the specified message | |
|
|
Set the current message part index for the specified message | |
|
|
Create or update the specified message body | |
|
|
Set the MIME version for the specified message | |