I have a email that's send out as a Receipt to a payment. This email contains a HTML Table that contains all the information.It writes that table as a body of the email.
protected void btnSendEmail_Click(object sender, EventArgs e)
{
var stringWrite = new StringWriter();
var htmlWrite = new HtmlTextWriter(stringWrite);
Table1.RenderControl(htmlWrite);
string sBody = stringWrite.ToString();
}
So the body of the email is the Receipt. I want to convert that HTML table that goes in the email as a body with all the values in it into a pdf and send it as a attachment. Please let me know if you know how to. Thanks