Scan/Replace Text in Email Body in C++

This example may help C++ programmers needing to scan email bodies for strings and automatically replace: void EmailBodyExample(void) { CkEmail email; // Set the plain-text and HTML alternative bodies. // Note: Because we’re using literal strings, the strings passed // to these methods are ANSI strings (i.e. they are 1-byte per char // in this case). email.AddPlainTextAlternativeBody(“á, é, í, ó, […]

Multipart/signed Email Handling

When a signed and/or encrypted email is loaded from a file or downloaded from a mail server, it is automatically verified and/or decrypted.   The results are stored in various properties of the email object, and the email object is available in its unencrypted/unsigned form.  This means that your application can process signed/encrypted emails in the same way as non-signed/non-encrypted email.  […]

MS-Word document as body of email?

Question: My question is how to I send the contents of a MS-Word document as the body of the email (not as an attachment)? Answer: You cannot. Most email clients (Mozilla Thunderbird, Eudora, etc.) are not capable of displaying MS-Word documents directly. (I’m not sure if Outlook does, I’ve never tested it…) Therefore, you would want to save your MS-Word […]

Message-ID and ReplyToMessageID

Question: Reading through the documentation I don’t see access to the Message-ID. 1. Is it possible to set the Message-ID to string value? ( like a GUID string value ) 2. After a read-confirmation/reply, is there a property to access the ‘ReplyToMessageId’ value? Answer: The GetHeaderField and AddHeaderField methods may be used to set or access any header field.  The […]