C# Examples

ChilkatHOMEASPVisual BasicVB.NETC#Visual C++CMFCDelphiFoxProJavaPerlPHPPythonRubySQL ServerVBScript

C# Examples

Bounced Mail
Bz2
Character Encoding
CSV
Digital Certificates
Digital Signatures
Email
FTP
HTML to XML
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...
Email Object
FileAccess
RSS
Atom
String
Byte Array
Self-Extractor
Service
PPMD
Deflate
DH Key Exchange
DSA

Unreleased...
Bzip2
LZW
Icon

 

 

 

 

 

 

Copy Email From POP3 Mailbox, Leaving it on Server

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 1.0 / 1.1 Framework

C# source code showing how to copy email from a POP3 mailbox, leaving it on the server.

	textBox1.Text = "";

	// Create a mailman object for reading email.
	Chilkat.MailMan mailman = new Chilkat.MailMan();

	// Any string argument automatically begins the 30-day trial.
	mailman.UnlockComponent("30-day trial");

	// Set our POP3 hostname, login and password
	mailman.MailHost = "mail.chilkatsoft.com";
	mailman.PopUsername = "login";
	mailman.PopPassword = "password";

	Chilkat.EmailBundle bundle;
	bundle = mailman.CopyMail();
	if (bundle == null) 
	{
		MessageBox.Show(mailman.LastErrorText);
		return;
	}

	int i;
	int n = bundle.MessageCount;
	for (i=0; i<n; i++)
	{
		Chilkat.Email email = bundle.GetEmail(i);

		textBox1.Text = textBox1.Text + email.From + "\r\n";
		textBox1.Text = textBox1.Text + email.Subject + "\r\n";
		textBox1.Text = textBox1.Text + email.Body + "\r\n****\r\n";
	}

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

 

Need a specific example? Send a request to support@chilkatsoft.com

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

Email Component · XML Parser