Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Email mime type

Email mime type

Scheduled Pinned Locked Moved C#
htmlcollaborationhelptutorialquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dabs
    wrote on last edited by
    #1

    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!

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups