|

DOWNLOAD
Reference
Chilkat Log Reference
Versions
XML Import/Export Features
Chilkat Mail makes it easy to save and load Emails
from XML.
Here is an example of an Email in XML format:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<mime_message>
<header>
<received from="uuout12smtp4.uu.flonetwork.com [205.150.6.54]"
by="mail.chilkatsoft.com (SMTPD32-7.04)" id="A8932A20204"
date="Tue, 11 Dec 2001 07:14:11 -0500" />
<received from="uucore10pumper1 (uuout12relay1.uu.flonetwork.com [172.20.72.10])"
by="uuout12smtp4.uu.flonetwork.com (Postfix)" with="SMTP" id="AA33E2F151"
for="<fausey@chilkatsoft.com>"
date="Mon, 10 Dec 2001 23:57:46 -0500 (EST)" />
<message-id><Kilauea47231-22188-13354543-1@flonetwork.com></message-id>
<from>
<address>
<addr>DA_3_D_VQ57N@interactive-week-direct.com</addr>
<name>IBM Corp.</name>
</address>
</from>
<to>
<address>
<addr>fausey@chilkatsoft.com</addr>
<name />
</address>
</to>
<subject>ADV: Complimentary Gift from IBM</subject>
<mime-version>1.0</mime-version>
<content-type charset="us-ascii">text/html</content-type>
<content-transfer-encoding>7bit</content-transfer-encoding>
<x-rcpt-to>
<address>
<addr>fausey@chilkatsoft.com</addr>
<name />
</address>
</x-rcpt-to>
<status>R</status>
<x-uidl>305918816</x-uidl>
</header>
<body>
<![CDATA[
<html>
THE HTML BODY WAS HERE...
</html>
]]>
</body>
</mime_message>
Creating XML from Emails or EmailBundles
It is easy to save to XML, or to generate XML for
use withing an application. Listed below are the methods that
generate XML:
- ChilkatEmail.SaveXml(filename
As String)
- Save the email in XML format.
- ChilkatEmail.GetXml()
As String
- Return an XML representation
of the email.
- ChilkatEmailBundle.GetXml()
As String
- Returns an XML formatted representation
of the entire email bundle.
-
- ChilkatEmailBundle.SaveXml(filename
As String)
- Saves the email bundle to an
XML formatted file.
Creating EmailBundles from XML
ChilkatMail can recreate email bundles from XML
it previously generated. The methods for doing this are:
- ChilkatMailMan.LoadXmlFile(filename
As String) As ChilkatEmailBundle
- Loads an XML file containing
emails and returns an email bundle. If a Filter is present,
only emails matching the filter are returned.
-
- ChilkatMailMan.LoadXmlString(xmlData
As String) As ChilkatEmailBundle
- Loads from an XML string containing
emails and returns an email bundle. If a Filter is present,
only emails matching the filter are returned.
|