Visual Basic Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

VB Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML Conversion
HTTP
IMAP
Encryption
MHT / HTML Email
POP3
RSA
S/MIME
SFTP
SMTP
Socket
Spider
SSH
SSH Key
SSH Tunnel
String
Tar
Upload
XML
XMP
Zip Compression

More Examples...
Amazon S3
Email Object
DKIM / DomainKey
NTLM
DH Key Exchange
DSA
FileAccess
RSS
Atom
Self-Extractor
Service
Bzip2
PPMD
Deflate
LZW


VB Strings
VB Byte Array

 

 

 

 

 

 

 

POP3 SSL

Download Chilkat Email ActiveX

How to download mail from a POP3 server over a secure SSL connection.

' Read POP3 email on a secure SSL connection.
' The code for reading email on a secure connection is identical
' to that of reading POP3 email on a normal (unsecure) connection.
' The only difference is that you must set mailman.PopSsl = 1, and the
' port number should be 995 (which is the most commonly used port for POP3 SSL)
Private Sub Command13_Click()

    Dim mailman As New ChilkatMailMan2
    mailman.UnlockComponent "Anything for 30-day trial"

    ' Indicate that POP3 SSL is to be used.
    mailman.PopSsl = 1
    ' Change the port from the default (110) to the default SSL POP3 port 995
    mailman.MailPort = 995
    
    ' Set our mail host and login
    mailman.MailHost = "mail.chilkatsoft.com"
    mailman.PopUsername = "***"
    mailman.PopPassword = "***"
    
    Dim bundle As ChilkatEmailBundle2
    Dim email As ChilkatEmail2
    
    Set bundle = mailman.CopyMail()
    If (bundle Is Nothing) Then
        MsgBox mailman.LastErrorText
        Exit Sub
    End If
    
    n = bundle.MessageCount
    For i = 0 To n - 1
        Set email = bundle.GetEmail(i)
        List1.AddItem email.From + ": " + email.Subject
    Next
    
End Sub



 

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