Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Get Received Headers from an EmailRetrieve "Received" headers from an email.
Chilkat.Email email = new Chilkat.Email(); // First, load an email. This example loads an email from // a file. bool success; success = email.LoadEml("testReceivedHdrs.eml"); if (success != true) { MessageBox.Show(email.LastErrorText); return; } int n; n = email.NumHeaderFields(); // List the Received header fields: int i; string name; for (i = 0; i <= n - 1; i++) { name = email.GetHeaderFieldName(i); // if (name.Equals("received",StringComparison.CurrentCultureIgnoreCase)) { textBox1.Text += email.GetHeaderFieldValue(i) + "\r\n"; textBox1.Refresh(); // } } |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.