自动注册电子邮件

发布于 2024-09-15 19:04:54 字数 266 浏览 5 评论 0原文

简而言之 -

  • 用户注册该网站
  • 会向用户发送一封电子邮件,确认他们的注册

我正在使用:

  • Asp.net 3.5(C#)
  • Sitefinity 作为 CMS
  • MS SQL 2008 服务器 r2

我的问题是自动发送的最佳方式是什么电子邮件?

应该在 ASP.net 中完成还是使用 xp_sendmail 之类的数据库触发器来完成

To be short -

  • User registers for the site
  • An email is sent to the user confirming their registration

I am using :

  • Asp.net 3.5(C#)
  • Sitefinity as a CMS
  • MS SQL 2008 server r2

My question is what is the best way to automatically send the email?

Should it be done in ASP.net or as a database trigger using something like xp_sendmail

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

帅冕 2024-09-22 19:04:54

如果你追求简单;那么 ASP.NET 会员系统就足够了。有很多关于如何在 ASP.NET 网站上设置用户注册和电子邮件确认的视频:

ASP.NET 会员资格
http://www.asp.net/learn/security-videos/ video-389.aspx

设置电子邮件注册确认
http://www.asp.net/security/videos/实现注册验证模式

如果我没看错的话,Sitefinity 是构建在 ASP.NET 现有会员系统之上的。所以整合应该不会那么困难。

If you are going to simplicity; then ASP.NET Membership system should suffice. There's bunch of videos on how to setup user registration and email confirmation on ASP.NET website:

ASP.NET Membership
http://www.asp.net/learn/security-videos/video-389.aspx

Setup email registration confirmation
http://www.asp.net/security/videos/implement-the-registration-verification-pattern

If I read correctly, Sitefinity is built on top of ASP.NET's existing membership system. So integration should not be that difficult.

浅唱ヾ落雨殇 2024-09-22 19:04:54

我总是会说在 ASP.NET 中。您的代码应该控制类似的一切。

一旦将其放入数据库,您就可以开始为未来构建问题。即,当您使用系统管理员移动数据库时,请记住这需要执行其他操作。在代码中,您将在配置中包含 SMTP 服务器,因此它应该始终是可管理的。

I would always say in ASP.NET. Your code should be in control of everything like that.

As soon as you put it in the database you will start building problems for the future. I.e. when you move database with the sys admin remember this needs doing etc. In code you will have your SMTP server in the configs so it should always be manageable.

眉黛浅 2024-09-22 19:04:54

我建议您按照已经建议的那样在 ASP.NET 中实现电子邮件通知。您可以利用 .NET 框架的电子邮件功能。 Sitefinity 构建于 .NET 之上,您可以使用现有代码来实现所需的电子邮件功能。

I would recommend that you implement the e-mail notification in ASP.NET as already suggested. You can leverage the emailing features of the .NET framework. Sitefinity is built-on top of .NET and you can use already existing code to implement the desired e-mailing feature.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文