![]() |
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) POP3 Fetch Mime Source of Email by UIDLDemonstrates how to fetch the MIME source of a single email by UIDL. Note: This example requires Chilkat v11.0.0 or greater.
Use ChilkatAx-win32.pkg Procedure Test Boolean iSuccess Handle hoMailman Variant vStUidls Handle hoStUidls Variant vBdMime Handle hoBdMime Integer iCount Integer i String sTemp1 Move False To iSuccess // This example requires the Chilkat API to have been previously unlocked. // See Global Unlock Sample for sample code. Get Create (RefClass(cComChilkatMailMan)) To hoMailman If (Not(IsComObjectCreated(hoMailman))) Begin Send CreateComObject of hoMailman End Set ComMailHost Of hoMailman To "pop.example.com" Set ComPopUsername Of hoMailman To "myLogin" Set ComPopPassword Of hoMailman To "myPassword" Set ComMailPort Of hoMailman To 995 Set ComPopSsl Of hoMailman To True Get Create (RefClass(cComChilkatStringTable)) To hoStUidls If (Not(IsComObjectCreated(hoStUidls))) Begin Send CreateComObject of hoStUidls End Get pvComObject of hoStUidls to vStUidls Get ComFetchUidls Of hoMailman vStUidls To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoMailman To sTemp1 Showln sTemp1 Procedure_Return End // Download each email as MIME. Get Create (RefClass(cComChilkatBinData)) To hoBdMime If (Not(IsComObjectCreated(hoBdMime))) Begin Send CreateComObject of hoBdMime End Get ComCount Of hoStUidls To iCount Move 0 To i While (i < iCount) Get ComStringAt Of hoStUidls i To sTemp1 Get pvComObject of hoBdMime to vBdMime Get ComFetchMimeBd Of hoMailman sTemp1 vBdMime To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoMailman To sTemp1 Showln sTemp1 Procedure_Return End // Do whatever is needed with the MIME contained in bdMime. Move (i + 1) To i Loop End_Procedure |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.