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 Email with SPA (Secure Password Authentication)

Download Chilkat Email ActiveX

How to authenticate on a POP3 server using SPA in VB6.

' Read POP3 email with SPA (Secure Password Authentication)
' The code for reading email using SPA is identical
' to that of reading POP3 email with normal authentication.
' The only difference is that you must set mailman.Pop3SPA = 1
Private Sub Command14_Click()

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

    ' Indicate that SPA (Secure Password Authentication) is to be used
    mailman.Pop3SPA = 1
    
    ' 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.