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 SSL
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.