简体   繁体   English

创建具有合并功能的电子邮件模板的良好库

[英]Good Library for Creating E-mail Templates with Merge Ability

I'm looking for a really good library/component/framework for creating e-mail templates for my web application. 我正在寻找一个非常好的库/组件/框架来为我的Web应用程序创建电子邮件模板。

We send out a number of e-mails on a regular basis: 我们会定期发送大量电子邮件:

  • Activate Your Account 激活你的账号
  • Welcome 欢迎
  • Thanks for Your Order 感谢您的订单
  • Etc. 等等。

I'd like to give the non-technical administrators of my web app a way to: 我想为我的网络应用程序的非技术管理员提供一种方法:

  • See the current e-mail template (HTML, WYSIWYG) 查看当前的电子邮件模板(HTML,所见即所得)
  • Make some minor modifications to copy, colors, etc. 对复印,颜色等进行一些小的修改。
  • Preview, Test, Save, and "deploy" a new version of the e-mail template. 预览,测试,保存和“部署”新版本的电子邮件模板。

The tool needs to support "merge" fields. 该工具需要支持“合并”字段。 For an example, see MailChimp.com . 有关示例,请参阅MailChimp.com They allow users to create e-mail templates and then specify any number of fields like this: |FIELD1| 它们允许用户创建电子邮件模板,然后指定任意数量的字段,如下所示: | FIELD1 | |FIELD2| |科研成果|

Then, when sending an e-mail, the developer passes-in the appropriate info for each field. 然后,在发送电子邮件时,开发人员会为每个字段传递适当的信息。

An example:

Hi *|FIRSTNAME|*,

Thanks for signing up.  You rule!

Best regards,
MyWebSite.com

Does anyone know of a tool like this that can plug into my ASP.NET / C# web app? 有谁知道可以插入我的ASP.NET / C#Web应用程序的工具? I assume someone out their wrote a library/component/something that I can license. 我假设有人在他们的书里写了一个我可以许可的库/组件/东西。

Thanks! 谢谢!

Try this one. 试试这个。 It's free and open source: 它是免费和开源的:

http://mailsystem.codeplex.com/ http://mailsystem.codeplex.com/

It includes some classes specifically designed for mail merging 它包括一些专门用于邮件合并的类

What's nice is that you can use its mail merging capabilities and still use system.net.mail for sending the email to avoid breaking your code. 很好的是,您可以使用其邮件合并功能,并且仍然使用system.net.mail来发送电子邮件,以避免破坏您的代码。

Here is another option. 这是另一种选择。

http://ntemplates.codeplex.com/ http://ntemplates.codeplex.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM