any one can tell how get confirmation mail after user registration in asp.net c#
-
any one can tell how get confirmation on the given email after user registration in asp.net c#
rizvan sivally
I'm in the middle of doing something very similar. Here is what I want to do: 1) Allow someone to register for my site using their email address as their account ID 2) Send them a confirmation email which they will have 5 days to respond to in order to activate their account. A few concepts to use: 1) Create the account and set the MembershipUser.IsApproved to false 2) Send an email with a link and query string parameter of a GUID. This GUID will be a key in a table, "Confirm Account Creation". The table will consist of the GUID, email and an expiration date. 3) When the user clicks on the embedded link, the corresponsding web page will verify the GUID and set the user account with the appropriate email to IsApproved = True and delete the row from the "Confirm Account Creation" table. 4) Also, the table will be scanned for any accounts that have past their expiration dates and delete those accounts. That's my idea so far ... :cool: Good luck. :thumbsup:
-
I'm in the middle of doing something very similar. Here is what I want to do: 1) Allow someone to register for my site using their email address as their account ID 2) Send them a confirmation email which they will have 5 days to respond to in order to activate their account. A few concepts to use: 1) Create the account and set the MembershipUser.IsApproved to false 2) Send an email with a link and query string parameter of a GUID. This GUID will be a key in a table, "Confirm Account Creation". The table will consist of the GUID, email and an expiration date. 3) When the user clicks on the embedded link, the corresponsding web page will verify the GUID and set the user account with the appropriate email to IsApproved = True and delete the row from the "Confirm Account Creation" table. 4) Also, the table will be scanned for any accounts that have past their expiration dates and delete those accounts. That's my idea so far ... :cool: Good luck. :thumbsup:
Hi , Here you have to implement send Mail functionality using System.Net namespace. below i mention code :- protected void Btn_SendMail_Click(object sender, EventArgs e) { MailMessage mailObj = new MailMessage( "sender mail id", "to mail id ", "Subject header", "Mail body"); SmtpClient SMTPServer = new SmtpClient("Host name like smtp.gmail.com"," port number like= 587"); SMTPServer.EnableSsl = true; SMTPServer.Credentials = new System.Net.NetworkCredential("your sender mail id", "mailId password"); try { SMTPServer.Send(mailObj); } catch (Exception ex) { Label1.Text = ex.ToString(); } }