I need to send the current page content as a mail. Any Idea How we can Do that. My Idea is to get the html code of the page and send it as such. But Don't know how to get the html code of the page.
If you want to get HTML of your page server side so that you can mail it, Try this
StringWriter str_wrt = new StringWriter();
HtmlTextWriter html_wrt = new HtmlTextWriter(str_wrt);
Page.RenderControl(html_wrt);
String HTML = str_wrt.ToString();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With