Want to add aspx page in gmail email template dynamically

Posted by Poojawadekar under ASP.NET on 7/11/2016 | Points: 10 | Views : 315 | Status : [Member] | Replies : 1
Want to add dynamic aspx page in gmail email template dynamically




Responses

Posted by: A2H on: 7/11/2016 [Member] [MVP] Silver | Points: 25

Up
0
Down
You can use the StreamReader to get the html content from aspx page and then assign it to HTMLBody of email.
You can check the below article where the details are explained with sample code
http://theme.aspneto.com/send-html-web-page-as-email-in-asp-net-c-vb-net.html

Also you need ensure that the your email's IsBodyHtml property is set to true

Thanks,
A2H
My Blog

Poojawadekar, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response