Email mime type
-
Hi, I'm working on a plugin for Outlook, which will allow the user to save their emails into a central repository where it will be accessible from other places, such as a web page. And I'm pondering in what format I should save the emails. Currently I'm using the .msg file format, but there are some problems with displaying it in a web page. Does anyone have any experience with doing this? I tried saving a mail message as HTML, but apparently that isn't supported unless the mail itself was originally in HTML format. This is an example of the way I'm doing it currently:
MailMessage msg = ... // Acquire the mail message which should be saved, no problem there... String strFilePath = Path.GetTempFileName( ); msg.SaveAs( strFilePath, OlSaveAsType.olMSG );
Simply changing from olMSG to olHTML wasn't working, at least not in all cases. But as I said, using the MSG file format would be OK if the mail would then display properly from a web page, but there does not seem to be a universal way to open .msg files in a web browser. Or is there? What mime type should I use for .msg files, in order to display properly in web pages? Regards, Daníel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!