I think you should consider using regular expressions to identify the image / doc or whatever comes with the mail. You will however need to read some rfc's before starting ...
donchev_p
Posts
-
how to decode mime from email attachment. -
Templates...I suppose he wants to send an html formated mail message with a custom background. You can use the approach above, but if you need preview you will need to use something like BrowserControl to render how the html formatted message will look like. If this is the question you can follow the steps below : 1. Present the user with some relevant interface to create the templates. 2. Define some kind of macro language so you can insert the variables you need in the text. 3. Make the text html, save it temporarly (or not temporarly) on the hard drive and load it to an WebBrowse control so the user can see the result, before save the template. Hope it helps.
-
XML Document Entity ReplacementYou will need some how to replace the & character with & amp; This way the XmlDocument object will confuse and will translate the & amp; as & only. You will then have & amp;apos; in the memory, which should become & apos; when you get it. Hope it helps.
-
Working with 1GB XML fileI think you should consider to use the SAX approach. XmlDocument uses DOM and the whole document is loaded into the memory (as mentioned above). The SAX approach takes parts of the document only, which may be your solution... SAX is stream based and the stream is bi-directional. Which means you can write and read. It uses events. Unfortunately I can't help you about the .NET implementation of SAX. I don't know if there is any ... You may search for the MSXML (Microsoft XML Core Services). I think this is available as COM object. You also may want to see the following page : http://sourceforge.net/projects/saxdotnet[^] Hope it helps. P.S. if you find a solution to this problem - please drop us a line ...