Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我现在正在 vb.net 中开发一个 Web 应用程序。在那个应用程序中,我有一个要求。即我必须向注册用户发送预定义的电子邮件模板。在该模板中,我必须添加一些文本消息,例如问候消息或欢迎消息。如何在 vb.net 中发送预定义的电子邮件模板?
您可以将电子邮件 html 存储在 sql 或文本文件中。确保为变量留下占位符,例如
<span id="user">{user}</span>
然后将“{user}”替换为循环中的数据库值。