C# Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CUnicode C++Unicode CMFCDelphi DLLDelphi ActiveXFoxProJavaPerlPHP ExtensionPHP ActiveXPythonPowerShellRubySQL ServerVBScript

C# Examples

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


More Examples...
Amazon S3
NTLM
FileAccess
RSS
Atom
String
Byte Array
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA
Bzip2
LZW

 

 

 

 

 

 

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
must be downloaded and installed separately at http://www.chilkatsoft.com/downloads.asp.
Once installed, add a reference to the DLL in the project by following the instructions at
http://www.example-code.com/vbdotnet/step2.asp

 

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