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. ASP.NET
  4. Emailing html page

Emailing html page

Scheduled Pinned Locked Moved ASP.NET
htmlquestion
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.
  • E Offline
    E Offline
    Ersan Ercek
    wrote on last edited by
    #1

    Dear All, How can I send an email of an HTML page showing the results of inquiries made by the client in the exact format displayed on the web-page. Is there a way to read the HTML and put it as the body of the email... Thanks alot... E.E.

    A S 2 Replies Last reply
    0
    • E Ersan Ercek

      Dear All, How can I send an email of an HTML page showing the results of inquiries made by the client in the exact format displayed on the web-page. Is there a way to read the HTML and put it as the body of the email... Thanks alot... E.E.

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Just create an object of MailMessage and set the html in body property and send the mail with IsBodyHtml = true. Your problem will be solved. :-D

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      My Latest Articles-->** Simplify Code Using NDepend
      Basics of Bing Search API using .NET
      Microsoft Bing MAP using Javascript

      1 Reply Last reply
      0
      • E Ersan Ercek

        Dear All, How can I send an email of an HTML page showing the results of inquiries made by the client in the exact format displayed on the web-page. Is there a way to read the HTML and put it as the body of the email... Thanks alot... E.E.

        S Offline
        S Offline
        sashidhar
        wrote on last edited by
        #3

        Are you looking for this? first google hit page[^]

        LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

        E 1 Reply Last reply
        0
        • S sashidhar

          Are you looking for this? first google hit page[^]

          LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.

          E Offline
          E Offline
          Ersan Ercek
          wrote on last edited by
          #4

          Dim SB as New StringBuilder() Dim SW as New StringWriter(SB) Dim htmlTW as New HtmlTextWriter(SW) dgPopularFAQs.RenderControl(htmlTW) Actually I am looking for this, however I did not understand what this code is doing... and why I need htmlwriter besides a stringwriter... but in anycase I hope Page.render(htmltw) will solve my problem and will attach whole page to SB... Thanks again

          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