我正在开发一个从数据库中获取电子邮件模板然后发送它们的应用程序。
来自数据库的模板的正文有 html,我如何在这个字符串上做一个 String.Format ?目前我收到一条错误消息,说输入字符串的格式不正确。
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<style>
.container {
font-size: 0;
}
.container.p.span {
/*font-size: 16px;**/
}
.titleTextSpan {
color: white;
width: inherit;
height: inherit;
font-family: sans-serif, Arial;
font-size: 20px;
display: table-cell;
vertical-align: middle;
text-align: left;
}
</style>
<div class="container" style="width:700px;">
<div style="display:inline-block;">
</div>
<div style="width:700px;height:44px; background:#36A6DE;display:table;">
<span class="titleTextSpan">PRODUCT NAME</span>
</div>
<div style="font-size:10pt;margin-left:20px;font-family:Arial, sans-serif;color:#4D4C4C">
<br />
Dear {16},
<br /><br />
Thank you for your request for PRODUCT NAME, which is now with your organisation …Run Code Online (Sandbox Code Playgroud)