(Visual FoxPro) Load MIME Object from Email Object
Demonstrates how to load a Chilkat Mime object from a Chilkat Email object. (Copies the email into a Mime object.)
LOCAL loEmail
LOCAL lnSuccess
LOCAL loSbMime
LOCAL loMime
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Email')
loEmail = CreateObject('Chilkat.Email')
lnSuccess = loEmail.LoadEml("qa_data/eml/sample.eml")
* Write the full MIME of the email to a StringBuilder.
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.StringBuilder')
loSbMime = CreateObject('Chilkat.StringBuilder')
loEmail.GetMimeSb(loSbMime)
* Load the MIME object from the StringBuilder
* For versions of Chilkat < 10.0.0, use CreateObject('Chilkat_9_5_0.Mime')
loMime = CreateObject('Chilkat.Mime')
lnSuccess = loMime.LoadMimeSb(loSbMime)
? loMime.GetMime()
RELEASE loEmail
RELEASE loSbMime
RELEASE loMime
|