Want to add aspx page in gmail email template dynamically

Posted by Poojawadekar under ASP.NET on 7/11/2016 | Points: 10 | Views : 1617 | Status : [Member] | Replies : 3
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

Posted by: Jayakumars on: 9/19/2019 [Member] [MVP] Bronze | Points: 25

Up
0
Down
Hi
You can create dynamic control in aspx page like textbox , label also

or you can design html page for email sending

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

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

Posted by: Jayakumars on: 9/19/2019 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
This website
http://theme.aspneto.com/send-html-web-page-as-email-in-asp-net-c-vb-net.html

404 error

Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

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

Login to post response