Sample code for 30+ languages & platforms
AutoIt

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

AutoIt
Local $bSuccess = False

$oEmail = ObjCreate("Chilkat.Email")
$bSuccess = $oEmail.LoadEml("qa_data/eml/sample.eml")

; Write the full MIME of the email to a StringBuilder.
$oSbMime = ObjCreate("Chilkat.StringBuilder")
$oEmail.GetMimeSb($oSbMime)

; Load the MIME object from the StringBuilder
$oMime = ObjCreate("Chilkat.Mime")
$bSuccess = $oMime.LoadMimeSb($oSbMime)

ConsoleWrite($oMime.GetMime() & @CRLF)