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

 

 

 

 

 

 

Check for Email on a POP3 Server

Download Chilkat .NET for 2.0 / 3.5 Framework

Download Chilkat .NET for 1.0 / 1.1 Framework

C# source code to check for email on a POP3 server.

private void button1_Click(object sender, System.EventArgs e)
{
	Chilkat.MailMan mailman = new Chilkat.MailMan();
	mailman.UnlockComponent("UnlockCode");

	mailman.MailHost = "mail.chilkatsoft.com";
	mailman.PopUsername = "myLogin";
	mailman.PopPassword = "myPassword";

	// CheckMail returns an integer value equal to the number
	// of mail messages in the POP3 mailbox.
	// If CheckMail failed, a value of -1 is returned.
	// A failure can occur if the username/password is incorrect,
	// or the mail server is unreachable, etc.
	long numMessages = mailman.CheckMail();
	textBox1.Text = Convert.ToString(numMessages);
	if (numMessages == -1)
	{
		MessageBox.Show(mailman.LastErrorText);
	}


}

 

 

 

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

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

Email Component · XML Parser