Zip Component, Email Component, Encryption Component ActiveX Control for Zip Compression .NET Components for ASP.NET
ActiveX and .NET Components for Zip Compression, Encryption, Email, XML, S/MIME, HTML Email, Character Encoding, Digital Certificates, FTP, and more ASP Email ActiveX Component


Index of Chilkat Blog Posts

July 27, 2006

Saving Sent Email to an XML File

Question: If we wanted to have a "maintainable" archive of the emails sent by our app in a single file, what would be the best technique?

Answer: Perhaps save them in an XML file with this format:












The intent is to minimize the parsing so as the file grows you’re not parsing each individual email simply to load the file. You might save key information (date,subject,to) in XML nodes, but each email’s source is only parsed on an as-needed basis.

An example in C# is located here: https://www.example-code.com/csharp/saveSentEmailToXml.asp


Privacy Statement. Copyright 2000-2011 Chilkat Software, Inc. All rights reserved.
Send feedback to support@chilkatsoft.com

Components for Microsoft Windows XP, 2000, 2003 Server, Vista, Windows 7, and Windows 95/98/NT4.