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. Web Development
  3. How to make the html visible to email clients?

How to make the html visible to email clients?

Scheduled Pinned Locked Moved Web Development
questionhtmlhelptutorial
4 Posts 3 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.
  • _ Offline
    _ Offline
    _iobuf
    wrote on last edited by
    #1

    I am working on a tool that generats html code and sends it to any given email(s). The problem is when the html is sent, it just shows the source code in the email instead of the actual html visuals, formatting, etc. How can I make email clients display the html properly? i.e. is there some kind of property to add to the html code that will show it in emails, like <META http-equiv=Content-Type content="text/html; charset=unicode" ShowInEmail="true">

    C L 2 Replies Last reply
    0
    • _ _iobuf

      I am working on a tool that generats html code and sends it to any given email(s). The problem is when the html is sent, it just shows the source code in the email instead of the actual html visuals, formatting, etc. How can I make email clients display the html properly? i.e. is there some kind of property to add to the html code that will show it in emails, like <META http-equiv=Content-Type content="text/html; charset=unicode" ShowInEmail="true">

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You can't do anything except have your users specify if they use a mail program that shows HTML, or if they want plain text.

      Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp

      1 Reply Last reply
      0
      • _ _iobuf

        I am working on a tool that generats html code and sends it to any given email(s). The problem is when the html is sent, it just shows the source code in the email instead of the actual html visuals, formatting, etc. How can I make email clients display the html properly? i.e. is there some kind of property to add to the html code that will show it in emails, like <META http-equiv=Content-Type content="text/html; charset=unicode" ShowInEmail="true">

        L Offline
        L Offline
        Leonscape
        wrote on last edited by
        #3

        It depends how your sending it. With the standard System.Net.Mail.SmtpClient you can send a System.Net.Mail.MailMessage setting its properties and setting IsBodyHtml to true.

        Using the wrong tool for the job is half the fun.

        _ 1 Reply Last reply
        0
        • L Leonscape

          It depends how your sending it. With the standard System.Net.Mail.SmtpClient you can send a System.Net.Mail.MailMessage setting its properties and setting IsBodyHtml to true.

          Using the wrong tool for the job is half the fun.

          _ Offline
          _ Offline
          _iobuf
          wrote on last edited by
          #4

          Thanks. I ended up figuring it out on my own, but this was the solution.

          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