Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
此类功能已内置。请参阅 MailDefinition 类。对于更复杂的场景,您可能需要考虑诸如 NVelocity 之类的东西。我在 StringTemplate 的 C# 端口 方面取得了很大的成功。
This kind of functionality is already built in. See MailDefinition class. For more complex scenarios you might want to consider something like NVelocity. I've had a lot of success with StringTemplate's C# port.
我刚刚为此目的发布了一个开源项目。您可以阅读更多详细信息并从我的博客获取源代码。
http://thecodedecanter.wordpress.com/2010/07/19/town-crier-an-open-source-e-mail-templatating-engine-for-net/
I've just released an open source project for precisely this purpose. You can read some more details and grab the source code from my blog.
http://thecodedecanter.wordpress.com/2010/07/19/town-crier-an-open-source-e-mail-templating-engine-for-net/