-
Hello sir, On registering our details to a new website, we recieve a confirmation mail along with user name, and password. How is it possibile? How can i do so using c#?
Nothing special... just during registration enter all the info into table, and leave the active field of the database as false. Send a confirmation mail with one transaction id, which you hold to the database upto a certain time... When the user clicks on the link you have provided with the email, it opens up a new page for activation, you can get the transaction id through query string or else ask the user to enter.... If the user enters correct transaction id, you can update the active bit field in the database and make the user active.... Simple.. :rose::rose:
Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions
Create .NET Templates -
Hello sir, On registering our details to a new website, we recieve a confirmation mail along with user name, and password. How is it possibile? How can i do so using c#?
-
Hello sir, On registering our details to a new website, we recieve a confirmation mail along with user name, and password. How is it possibile? How can i do so using c#?
in class mail public static void SendMail(string MailTo, string MailFrom, string Subject,String MailBody) { System.Net.Mail.MailMessage objMailMessage = new System.Net.Mail.MailMessage(MailFrom, MailTo); objMailMessage.Subject = Subject; objMailMessage.IsBodyHtml = true; objMailMessage.Body = MailBody; SmtpClient objsmtp = new SmtpClient(); objsmtp.Send(objMailMessage); } in aspx.cs call Sendmail function string Subject="Hoe to send mail"; strimg MailBody=" Dear user your Username=" +username +""; "password ="+ password; SendMail(to@mail.com, from@mail.com, Subject,MailBody) and also set smtp setting in webconfig
ASP.NET
4
Posts
4
Posters
0
Views
1
Watching