.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

confirmation mail

Posted By: Shweta     Posted Date: February 19, 2011    Points:2   Category :ASP.Net
i want to send the confirmation mail to the newly registered people on the website to activate their account.
how should i do that??

Author: Jayakumar             
Posted Date: February 19, 2011     Points: 5   


first registered Email id stored in your Db then use smtp mailservice
go to mail

Name : R.Jayakumar(JK)
Email Id : kumaraspcode2009@gmail.com
Author: Pandian             
Posted Date: February 19, 2011     Points: 5   


Configure SQL Database Mail as It'll use SMTP Protocol and Send the mail using SP_SEND_DBMAIL system stored procedure for the newly registered records based on some flag (i.e: registered Date)


If not I then who, If not now then when
Author: Lakhan Pal Garg             
Posted Date: February 20, 2011     Points: 5   

Hi Shweta,
First Add a new field in the user table named IsActive as Bit
Now Set the default value of this field is false. use the dot net email functionality to send
email (http://lakhangarg.blogspot.com/2009/04/function-to-send-email-aspnet-c.html)to the user
and also send a link in the message body, that will contain encrypted user id in the query string.
now when user will open that link, Decrpt the user ID and validate the user and
update the value of ISActive column .

Thanks & Regards,
Lakhan Pal Garg

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend