![]() |
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
(Visual FoxPro) 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.
LOCAL lnSuccess LOCAL loMailman LOCAL loStUidls LOCAL loBdMime LOCAL lnCount LOCAL i lnSuccess = 0 * This example requires the Chilkat API to have been previously unlocked. * See Global Unlock Sample for sample code. loMailman = CreateObject('Chilkat.MailMan') loMailman.MailHost = "pop.example.com" loMailman.PopUsername = "myLogin" loMailman.PopPassword = "myPassword" loMailman.MailPort = 995 loMailman.PopSsl = 1 loStUidls = CreateObject('Chilkat.StringTable') lnSuccess = loMailman.FetchUidls(loStUidls) IF (lnSuccess = 0) THEN ? loMailman.LastErrorText RELEASE loMailman RELEASE loStUidls CANCEL ENDIF * Download each email as MIME. loBdMime = CreateObject('Chilkat.BinData') lnCount = loStUidls.Count i = 0 DO WHILE i < lnCount lnSuccess = loMailman.FetchMimeBd(loStUidls.StringAt(i),loBdMime) IF (lnSuccess = 0) THEN ? loMailman.LastErrorText RELEASE loMailman RELEASE loStUidls RELEASE loBdMime CANCEL ENDIF * Do whatever is needed with the MIME contained in bdMime. i = i + 1 ENDDO RELEASE loMailman RELEASE loStUidls RELEASE loBdMime |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.