C# Examples

ChilkatHOMEAndroid™ASPVisual BasicVB.NETC#iOS (IPhone)Objective-CC++CMFCDelphiFoxProJavaPerl
PHP 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

 

 

 

 

 

 

Iterate Email Headers

Demonstrates how to iterate over the email header fields.

Download Chilkat .NET for 4.0 Framework

Download Chilkat .NET for 64-bit 4.0 Framework (x64)

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 64-bit 2.0 / 3.5 Framework (x64)

Download Chilkat .NET for 1.0 / 1.1 Framework

Chilkat.Email email = new Chilkat.Email();

//  First, load an email from a file.
//  Note: an email object may be loaded from a file, or
//  downloaded directly from a POP3 or IMAP server...
bool success;
success = email.LoadEml("testReceivedHdrs.eml");
if (success != true) {
    MessageBox.Show(email.LastErrorText);
    return;
}

//  How many header fields?
int n;
n = email.NumHeaderFields;
if (n > 0) {

    //  Display the name and value of each header:
    int i;
    string name;
    string value;
    for (i = 0; i <= n - 1; i++) {
        name = email.GetHeaderFieldName(i);
        value = email.GetHeaderFieldValue(i);
        textBox1.Text += Convert.ToString(i) + "\r\n";
        textBox1.Text += name + "\r\n";
        textBox1.Text += value + "\r\n";

    }

}

 

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

Email Component · XML Parser