Good Day.
I am creating an html email in ASP.NET. Now the problem is when I want to add anything to my body except the html and body tags. When I want to add styles, the code file gives me errors, and many of them...
I want to add this
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Enquiry</title>
</head>
<body>
<div style="margin: 0 auto; text-align: center; background: #3C3B3D; padding: 10px;">
<h4 style="color: #F3911F">Website Enquiry</h4>
</div>
<table style="text-align: center; margin: 0 auto;">
<tr>
<td>name: </td>
<td>{0}</td>
</tr>
</table>
</body>
</html>
Inside this
var html = string.Format("THE HTML HERE", TextBoxName.Text)
Visual studio basically underlines everything (all the html above) when I add it to the string...
How do I format/style my email body in ASP?.
Thank you
TextBoxName.Text?