Reputation: 91666
I want to create an e-mail file on a web server that will open in Microsoft Outlook. It appears the two formats that would come in handy are the .MSG format and .OFT format.
However, both appear to be GZIP'ed formats with a bunch of streams. This would be tough to generate on a web server.
Is there an XML or text based format I can use to encode a simple email?
If not, is there a free .NET library that can generate an email message on the fly?
Thanks! Mike
Upvotes: 4
Views: 577
Reputation: 91666
I decided to use OpenMCDF to build a file on the fly. This is working pretty well, and it's a decent (and free) framework for working with compact binary files.
Upvotes: 0
Reputation: 21127
Just use System.Net.Mail and write to the file system:
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory
pickupDirectoryLocation="c:\yourdirectory"/>
</smtp>
</mailSettings>
</system.net>
Upvotes: 3