I need to save a page from url - This page is in my own application - in html format. This html will then be send by email to a user. Any anyone knows how?
Well, you'll have to do it at the server to be able to e-mail - so at worst, simply:
using(WebClient client = new WebClient()) {
string html = client.DownloadString(address);
}
It might also be possible to do it directly within MVC - perhaps RenderPartial
?
You could create a Result Filter or override the OnResultExecuted method of the controller to get access to the rendered page.
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