Unicode C++
Unicode C++
Load MIME Object from Email Object
See more Email Object Examples
Demonstrates how to load a Chilkat Mime object from a Chilkat Email object. (Copies the email into a Mime object.)Chilkat Unicode C++ Downloads
#include <CkEmailW.h>
#include <CkStringBuilderW.h>
#include <CkMimeW.h>
void ChilkatSample(void)
{
bool success = false;
CkEmailW email;
success = email.LoadEml(L"qa_data/eml/sample.eml");
// Write the full MIME of the email to a StringBuilder.
CkStringBuilderW sbMime;
email.GetMimeSb(sbMime);
// Load the MIME object from the StringBuilder
CkMimeW mime;
success = mime.LoadMimeSb(sbMime);
wprintf(L"%s\n",mime.getMime());
}