我有一個確認郵件模板.cshtml
如下:設置「CSHTML」數據並返回一個字符串
<html>
<head>
<title>company name: Email Verification - Action Required</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
Thanks for signing up for company name!
<br/>
<br/>
Thank you for signing up to company name. Please press the link below to confirm your email address <br/>
If you did not sign up for company name, please ignore this email, and accept our apologies for the inconvenience.
<br/>
<br/>
<a href="@Model.ConfirmLink">@Model.ConfirmLink</a>
<br/>
<br/>
<br/>
Thanks,<br/>
The <a href="http://company name.com" >company name</a> Team
</table>
</body>
</html>
是否有一個機制,我可以設置數據(@Model.ConfirmLink
),並得到一個結果作爲string
? (不是手動替換字符串)