Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
POP3 Email with SPA (Secure Password Authentication)
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.