English 中文(简体)
Automated registration email
原标题:

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

最佳回答

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.

问题回答

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.

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.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签