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. HTML Content-type

HTML Content-type

Scheduled Pinned Locked Moved C#
csharphtmlquestionannouncement
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
    DougW48
    wrote on last edited by
    #1

    In the .NET 2.0, there is the new System.Net.Mail which I've been experimenting with. I cannot seem to come up with a way of changing the Content-type of my mail message to text/html. Even if I add this parameter to the MailMessage's header, the actual message's header comes through, and I will see 2 Content-type lines...the 2nd being text/plain, which puts my message back to normal text. In the System.Net.Mime class, when I create a new mime, I can specify the content-type in the constructor as a parameter...but this seems to be the only place I have access to do this. Is there a current way to set the Content-type in a mail message, or to set the BodyContentType to an already defined Mime variable? If there is no way, does anybody know if Microsoft is going to be adding this before the official release of VS05, and the 2.0 Framework? Thanks for the information!!

    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