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.
Dim email As New Chilkat.Email() ' First, load an email. This example loads an email from ' a file. Dim success As Boolean success = email.LoadEml("testReceivedHdrs.eml") If (success <> true) Then MsgBox(email.LastErrorText) Exit Sub End If Dim n As Long n = email.NumHeaderFields() ' List the Received header fields: Dim i As Long Dim name As String For i = 0 To n - 1 name = email.GetHeaderFieldName(i) If (name.Equals("received",StringComparison.CurrentCultureIgnoreCase)) Then TextBox1.Text = TextBox1.Text & email.GetHeaderFieldValue(i) & vbCrLf End If Next |
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2007 Chilkat Software, Inc. All Rights Reserved.