C# Coding | Email | Text File

October 6, 2016 | Author: Anonymous | Category: C#
Share Embed

Short Description

C# Coding - Download as Word Doc (.doc), PDF File (.pdf), Text File (.txt) or read online....


C# sample source code showing how to create a bounced mail handler.

 private void button1_Click(object sender, System.EventArgs e) { // The Chilkat Bounce component is used to classify an email as // one of several types of automated replies such as bounced // email messages, virus warnings, out-of-office replies, etc. // To read email from a POP3 server, the Chilkat Mail component // (licensed separately) is used. Chilkat.MailMan mailman = new Chilkat.MailMan(); mailman.UnlockComponent("MailUnlockCode"); mailman.MailHost = "mail.chilkatsoft.com"; mailman.PopUsername = "login"; mailman.PopPassword = "password"; Chilkat.Bounce bounce = new Chilkat.Bounce (); bool success = bounce.UnlockComponent("BounceUnlockCode"); if (!success) { textBox1.Text = bounce.LastErrorText; return; } // Read email from the POP3 server. Chilkat.EmailBundle bundle; bundle = mailman.CopyMail(); if (bundle != null) { // Loop over each email... Chilkat.Email email; int i; bool success; for (i=0; i
View more...


Copyright © 2017 DATENPDF Inc.