![]() |
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
(PureBasic) Transition from MailMan.LoadEml to Email.LoadEmlProvides instructions for replacing deprecated MailMan.LoadEml method calls with Email.LoadEml. Note: This example requires Chilkat v11.0.0 or greater.
IncludeFile "CkEmail.pb" IncludeFile "CkMailMan.pb" Procedure ChilkatExample() mailman.i = CkMailMan::ckCreate() If mailman.i = 0 Debug "Failed to create object." ProcedureReturn EndIf ; ... ; ... filePath.s = "c:/dir/example.eml" ; ------------------------------------------------------------------------ ; The MailMan.LoadEml method is deprecated: emailObj.i = CkMailMan::ckLoadEml(mailman,filePath) If CkMailMan::ckLastMethodSuccess(mailman) = 0 Debug CkMailMan::ckLastErrorText(mailman) CkMailMan::ckDispose(mailman) ProcedureReturn EndIf ; ... ; ... CkEmail::ckDispose(emailObj) ; ------------------------------------------------------------------------ ; Do the equivalent using Email.LoadEml. email.i = CkEmail::ckCreate() If email.i = 0 Debug "Failed to create object." ProcedureReturn EndIf success.i = CkEmail::ckLoadEml(email,filePath) If success = 0 Debug CkEmail::ckLastErrorText(email) CkMailMan::ckDispose(mailman) CkEmail::ckDispose(email) ProcedureReturn EndIf CkMailMan::ckDispose(mailman) CkEmail::ckDispose(email) ProcedureReturn EndProcedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.