Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(DataFlex) Load MIME Object from Email ObjectDemonstrates how to load a Chilkat Mime object from a Chilkat Email object. (Copies the email into a Mime object.)
Use ChilkatAx-win32.pkg Procedure Test Handle hoEmail Boolean iSuccess Variant vSbMime Handle hoSbMime Handle hoMime String sTemp1 Get Create (RefClass(cComChilkatEmail)) To hoEmail If (Not(IsComObjectCreated(hoEmail))) Begin Send CreateComObject of hoEmail End Get ComLoadEml Of hoEmail "qa_data/eml/sample.eml" To iSuccess // Write the full MIME of the email to a StringBuilder. Get Create (RefClass(cComChilkatStringBuilder)) To hoSbMime If (Not(IsComObjectCreated(hoSbMime))) Begin Send CreateComObject of hoSbMime End Get pvComObject of hoSbMime to vSbMime Get ComGetMimeSb Of hoEmail vSbMime To iSuccess // Load the MIME object from the StringBuilder Get Create (RefClass(cComChilkatMime)) To hoMime If (Not(IsComObjectCreated(hoMime))) Begin Send CreateComObject of hoMime End Get pvComObject of hoSbMime to vSbMime Get ComLoadMimeSb Of hoMime vSbMime To iSuccess Get ComGetMime Of hoMime To sTemp1 Showln sTemp1 End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.