Xbase++
Xbase++
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 Xbase++ Downloads
LOCAL nSuccess
LOCAL oEmail
LOCAL oSbMime
LOCAL oMime
nSuccess := 0
oEmail := CreateObject("Chilkat.Email")
nSuccess := oEmail:LoadEml("qa_data/eml/sample.eml")
// Write the full MIME of the email to a StringBuilder.
oSbMime := CreateObject("Chilkat.StringBuilder")
oEmail:GetMimeSb(oSbMime)
// Load the MIME object from the StringBuilder
oMime := CreateObject("Chilkat.Mime")
nSuccess := oMime:LoadMimeSb(oSbMime)
? oMime:GetMime()
oEmail:destroy()
oSbMime:destroy()
oMime:destroy()