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). Downloads: MS Windows Visual C/C++ Libraries Linux/CentOS C/C++ Libraries MAC OS X C/C++ Libraries Solaris C/C++ Libraries C++ Builder Libraries #include <CkEmail.h> void ChilkatSample(void) { CkEmail email; // Load an email from a .eml bool success; success = email.LoadEml("embeddedEmail.eml"); if (success != true) { printf("%s\n",email.lastErrorText()); return; } // Display how many attached emails are embedded within // this one: long numAttached; numAttached = email.get_NumAttachedMessages(); printf("%d\n",numAttached); // Get the 1st attached message. CkEmail *email2 = 0; email2 = email.GetAttachedMessage(0); if (!(email2 == 0 )) { // Display the subject, From, and a header field... printf("%s\n",email2->subject()); printf("%s\n",email2->ck_from()); printf("%s\n",email2->getHeaderField("X-SOMETHING")); } } |
© 2000-2010 Chilkat Software, Inc. All Rights Reserved.