Chilkat HOME Android™ ASP Visual Basic VB.NET C# iOS (IPhone) Objective-C C++ C Unicode C++ Unicode C MFC Delphi DLL Delphi ActiveX FoxPro Java Perl PHP Extension PHP ActiveX Python PowerShell Ruby SQL Server VBScript
Extract DSN Attached Message as Email ObjectDownload: Chilkat .NET Assemblies C# code showing how to extract an attached message from a DSN as an email object. // Unlock the component Chilkat.MailMan mailman0 = new Chilkat.MailMan(); mailman0.UnlockComponent("30-day trial"); // Load a .eml file into the email object. // A zip containing 10 DSN sample emails can be found at: // http://www.chilkatsoft.com/dsn_samples/DSN_Samples.zip Chilkat.Email email = new Chilkat.Email(); email.LoadEml("dsnSample1.eml"); // The email should be a multipart/report. If not, exit. if (!email.IsMultipartReport()) { MessageBox.Show("Not a DSN!"); return; } // There is usually an attached message. Chilkat.Email email2 = email.GetAttachedMessage(0); if (email2 != null) { // Your application can now retrieve information from email2 just // like any other email object... MessageBox.Show(email2.GetHeaderField("Message-ID")); } else { MessageBox.Show("No attached message!"); } Important: The download for this
example does not contain the ChilkatDotNet.dll which |
© 2000-2013 Chilkat Software, Inc. All Rights Reserved.