Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. any one can tell how get confirmation mail after user registration in asp.net c#

any one can tell how get confirmation mail after user registration in asp.net c#

Scheduled Pinned Locked Moved ASP.NET
csharpasp-net
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sheemap
    wrote on last edited by
    #1

    any one can tell how get confirmation on the given email after user registration in asp.net c#

    rizvan sivally

    D 1 Reply Last reply
    0
    • S sheemap

      any one can tell how get confirmation on the given email after user registration in asp.net c#

      rizvan sivally

      D Offline
      D Offline
      David Mujica
      wrote on last edited by
      #2

      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:

      A 1 Reply Last reply
      0
      • D David Mujica

        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:

        A Offline
        A Offline
        AjayKumar Pal
        wrote on last edited by
        #3

        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(); } }

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups