Is there a non-binary format for an Outlook email message?
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.开发者_StackOverflow社区 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
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>
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.
精彩评论