Chilkat
HOME
Android™
ASP
Visual Basic
VB.NET
C#
iOS (IPhone)
Objective-C
C++
C
MFC
Delphi
FoxPro
Java
Perl
PHP Extension
PHP ActiveX
Python
PowerShell
Ruby
SQL Server
VBScript
Access Attached Message (Embedded Email)
How to access an email embedded within another email (i.e. an attached message). Chilkat.Email email = new Chilkat.Email(); // Load an email from a .eml bool success; success = email.LoadEml("embeddedEmail.eml"); if (success != true) { MessageBox.Show(email.LastErrorText); return; } // Display how many attached emails are embedded within // this one: int numAttached; numAttached = email.NumAttachedMessages; MessageBox.Show(Convert.ToString(numAttached)); // Get the 1st attached message. Chilkat.Email email2 = null; email2 = email.GetAttachedMessage(0); if (!(email2 == null )) { // Display the subject, From, and a header field... textBox1.Text += email2.Subject + "\r\n"; textBox1.Text += email2.From + "\r\n"; textBox1.Text += email2.GetHeaderField("X-SOMETHING") + "\r\n"; } |
© 2000-2012 Chilkat Software, Inc. All Rights Reserved.