Mail Message Class Methods  
 
Class Description
CMailMessage Constructor which initializes the current instance of the class.
~CMailMessage Destructor which releases resources allocated by the class.
Method Description
AddHeaders Add one or more header values to the current message.
AppendText Append text to the body of the current message part.
AttachData Attach the contents of a buffer to the current message.
AttachFile Attach a file to the current message.
AttachHandle Attach the current message handle to this instance of the class.
AttachImage Attach an inline image to the current message.
CheckAuthenticationResults Check the authentication status for the current message.
Clear Clear the current message, deleting all message parts.
ClearText Clear the body of the current message part.
Close Close the current message.
CompareType Compare the message contents against the specified content type.
CompareText Compare text in the body of the current message part.
Compose Compose a new message using the specified parameters.
Copy Copy the contents of another message into the current message.
CreatePart Create a new message part for the current message.
DecodeText Decode a base64 or quoted-printable encoded string.
DeleteHeader Delete the specified header field from the message.
DeletePart Delete the current message part.
DetachHandle Detach the handle for the current instance of this class.
EncodeText Encode a string using base64 or quoted-printable encoding.
EnumAttachments Enumerate all file attachments in the current message.
EnumHeaders Enumerate all header fields in the current message part.
EnumRecipients Enumerate addresses of all message recipients.
Export Export the current message to a string buffer or text file.
ExtractAllFiles Extract all file attachments in the message and store them in the specified directory.
ExtractFile Extract the file attachment from the current message part.
FindAttachment Search for a file attachment in the current message.
FindText Search for a regular expression or string literal in the current message text.
FormatDate Return a standard RFC 822 formatted date string.
GetAllHeaders Return the complete RFC 822 header values in a string buffer.
GetAllRecipients Return a comma-separated list of recipient addresses in a string buffer.
GetAttachedFileName Return the name of the file attachment for the current part.
GetAuthenticationResults Return information about the authentication status of the message.
GetBoundary Return the multipart message boundary string.
GetContentDigest Return encoded digest of message's content.
GetContentLength Return the length of the current message part content.
GetContentType Return the content type identifier for the current message part.
GetDate Return the date and time from the message header.
GetErrorString Return a description for the specified error code.
GetExportOptions Return a bitmask that describes current message export options.
GetFileType Return the content type for a specified file.
GetFilteredText Return the filtered contents for the current message part.
GetFirstHeader Return the first header field and value in the current message part.
GetHandle Return the message handle used by this instance of the class.
GetHeader Return the value of a specified header from the message.
GetLastError Return the last error code.
GetLinks Returns the hyperlinks in the current message part.
GetNextHeader Return the next header field and value in the current message part.
GetPart Return the current message part index.
GetPartCount Return the total number of message parts.
GetSender Return the email address of the message sender.
GetSize Return the size of the complete message in bytes.
GetText Return the text of the current message part.
GetTextLength Return the length of the text in the current message part.
Import Import a message from the specified text file, clipboard or buffer.
IsContentType Determine if the message part matches the specified content type.
IsInitialized Determine if the class has been successfully initialized.
LocalizeText Localize Unicode text to ANSI using a specific character set.
NormalizeText Normalize Unicode text, eliminating confusable homoglyphs and symbols.
Open Open and parse the specified text file as a MIME formatted message.
ParseAddress Parse the specified email address.
ParseDate Parse the specified RFC 822 formatted date string.
ParseHeader Parse the specified text and add to message header.
ParseText Parse the specified text and add to the current message.
SetExportOptions Specify a bitmask that describes current message export options.
SetFileType Set the content type for a specific file name extension.
SetLastError Set the last error code.
SetDate Set the current date in the header for the current message.
SetHeader Create or update a header field in the current message.
SetPart Set the current message part index for the current message.
SetText Create or update the current message body.
ShowError Display a message box with a description of the specified error.