Chilkat Examples

ChilkatHOMEAndroid™Classic ASPCC++C#Mono C#.NET Core C#C# UWP/WinRTDataFlexDelphi ActiveXDelphi DLLVisual FoxProJavaLianjaMFCObjective-CPerlPHP ActiveXPHP ExtensionPowerBuilderPowerShellPureBasicCkPythonChilkat2-PythonRubySQL ServerSwift 2Swift 3/4TclUnicode CUnicode C++Visual Basic 6.0VB.NETVB.NET UWP/WinRTVBScriptXojo PluginNode.jsExcelGo

DataFlex Examples

Web API Categories

ASN.1
Amazon Glacier
Amazon S3
Amazon S3 (new)
Amazon SES
Amazon SNS
Amazon SQS
Async
Azure Cloud Storage
Azure Service Bus
Base64
Bounced Email
Box
CAdES
CSR
CSV
Certificates
Compression
DKIM / DomainKey
DSA
Diffie-Hellman
Digital Signatures
Dropbox
Dynamics CRM
ECC
Email Object
Encryption
FTP
FileAccess
Firebase
GMail REST API
Geolocation
Google APIs
Google Calendar
Google Cloud Storage
Google Drive
Google Photos
Google Sheets
Google Tasks
Gzip
HTML-to-XML/Text

HTTP
HTTP Misc
IMAP
JSON
JSON Web Encryption (JWE)
JSON Web Signatures (JWS)
JSON Web Token (JWT)
Java KeyStore (JKS)
MHT / HTML Email
MIME
Microsoft Graph
NTLM
OAuth1
OAuth2
OneDrive
OpenSSL
Outlook
PEM
PFX/P12
POP3
PRNG
REST
REST Misc
RSA Encryption
SCP
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
SharePoint
Socket/SSL/TLS
Spider
Stream
Tar Archive
Upload
WebSocket
XAdES
XML
XML Digital Signatures
XMP
Zip
curl

 

 

 

(DataFlex) POP3 Session Log

Demonstrates how the Chilkat email component keeps a log of the current POP3 session in the mailman.Pop3SessionLog property.

Chilkat ActiveX Downloads

ActiveX for 32-bit and 64-bit Windows

Use ChilkatAx-9.5.0-win32.pkg

Procedure Test
    Handle hoMailman
    Boolean iSuccess
    Variant vSa
    Handle hoSa
    Integer i
    Integer n
    String sTemp1

    //  The mailman object is used for receiving (POP3)
    //  and sending (SMTP) email.
    Get Create (RefClass(cComChilkatMailMan)) To hoMailman
    If (Not(IsComObjectCreated(hoMailman))) Begin
        Send CreateComObject of hoMailman
    End

    //  Any string argument automatically begins the 30-day trial.
    Get ComUnlockComponent Of hoMailman "30-day trial" To iSuccess
    If (iSuccess <> True) Begin
        Showln "Component unlock failed"
        Procedure_Return
    End

    //  Set the POP3 server's hostname
    Set ComMailHost Of hoMailman To "pop.someMailServer.com"

    //  Set the POP3 login/password.
    Set ComPopUsername Of hoMailman To "matt@chilkatsoft.com"
    Set ComPopPassword Of hoMailman To "****"

    //  You may explicitly begin and end POP3 sessions by calling
    //  Pop3BeginSession and Pop3EndSession.  However,
    //  if a method is called that requires a connection to the POP3
    //  server, the connection and session will become established
    //  automatically.  Therefore, it is not required to explicitly call
    //  Pop3BeginSession and Pop3EndSession.

    Get ComPop3BeginSession Of hoMailman To iSuccess
    If (iSuccess <> True) Begin
        Get ComLastErrorText Of hoMailman To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    //  Get a list of the UIDLs for the email in the mailbox and print it.
    Get ComGetUidls Of hoMailman To vSa
    If (IsComObject(vSa)) Begin
        Get Create (RefClass(cComCkStringArray)) To hoSa
        Set pvComObject Of hoSa To vSa
    End

    Get ComCount Of hoSa To n

    For i From 0 To (n - 1)
        Get ComGetString Of hoSa i To sTemp1
        Showln sTemp1
    Loop

    Send Destroy of hoSa

    //  Display the POP3 session log:
    Get ComPop3SessionLog Of hoMailman To sTemp1
    Showln sTemp1

    Get ComPop3EndSession Of hoMailman To iSuccess
    If (iSuccess <> True) Begin
        Get ComLastErrorText Of hoMailman To sTemp1
        Showln sTemp1
        Procedure_Return
    End



End_Procedure

 

© 2000-2019 Chilkat Software, Inc. All Rights Reserved.