Sample code for 30+ languages & platforms
Lianja

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 Lianja Downloads

Lianja
llSuccess = .F.

loEmail = createobject("CkEmail")
llSuccess = loEmail.LoadEml("qa_data/eml/sample.eml")

// Write the full MIME of the email to a StringBuilder.
loSbMime = createobject("CkStringBuilder")
loEmail.GetMimeSb(loSbMime)

// Load the MIME object from the StringBuilder
loMime = createobject("CkMime")
llSuccess = loMime.LoadMimeSb(loSbMime)

? loMime.GetMime()


release loEmail
release loSbMime
release loMime