这是我的 html 内容,我有一个按钮,单击按钮我必须发送邮件,但邮件的内容(如 body 、subject )将从 html 内容中获取。
html内容:
@"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
<title>Untitled Document</title>
<style>.reservation { }.reservation table {}.reservation tr { background-color: #F6F2E7; }.reservation th { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #F6F2E7; background-color: #302824; padding: 5px; text-align:left; }.reservation td { padding-top: 3px; padding-right: 5px; padding-bottom: 3px; padding-left: 5px; border-bottom: 1px solid #DFDBD1; color: #443D37; font-family: Arial, Helvetica, sans-serif; font-size: 12px; }.reservation td strong { font-weight: bold; padding-right:10px; }.reservation td span { font-weight: normal; }
</style>
</head>
<body>
<div style=\"width:300px; margin:auto;\"><div class=\"reservation\">
<table width=\"300px\" cellpadding=\"0\" cellspacing=\"0\">
<tr> <th width=\"130px\">Reservation </th>
<th> </th> </tr>
<tr> <td> <strong>%@ :</strong> </td>
<td> <span>%@</span> </td>
</tr> <tr> <td> <strong>%@ :</strong> </td>
<td> <span>%@</span> </td> </tr>
<tr> <td> <strong>%@ :</strong> </td> <td> <span>%@</span> </td> </tr>
<tr> <td> <strong>%@ :</strong> </td>
<td> <span>%@</span> </td> </tr>
</table>
</div>
</div>
</body>
</html>