Emailing html page
-
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.
-
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.
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 -
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.
-
Are you looking for this? first google hit page[^]
LatestArticle :Log4Net Why Do Some People Forget To Mark as Answer .If It Helps.
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