Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
POP3 SPA Authentication (Secure Password Authentication)Download: Chilkat .NET Assemblies C# example code showing how to do SPA authentication with the Chilkat email component. // 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 = true
private void pop3_spa_demo()
{
Chilkat.MailMan mailman = new Chilkat.MailMan();
mailman.UnlockComponent("Anything for 30-day trial");
// Indicate that SPA (Secure Password Authentication) is to be used
mailman.Pop3SPA = true;
// Set our POP3 mail host and login
mailman.MailHost = "mail.chilkatsoft.com";
mailman.PopUsername = "***";
mailman.PopPassword = "***";
Chilkat.EmailBundle bundle = mailman.CopyMail();
if (bundle == null) {
MessageBox.Show(mailman.LastErrorText);
return;
}
int n = bundle.MessageCount;
int i;
for (i=0; i<n; i++)
{
Chilkat.Email email = bundle.GetEmail(i);
listBox1.Items.Add(email.From + ": " + email.Subject);
}
}
Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.