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. Email

Email

Scheduled Pinned Locked Moved ASP.NET
questioncsharp
4 Posts 4 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.
  • M Offline
    M Offline
    M Ambigai
    wrote on last edited by
    #1

    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#?

    A A S 3 Replies Last reply
    0
    • M M Ambigai

      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#?

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M M Ambigai

        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#?

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        Check This[^] Post. That is similar post like you. You will get a better idea from that.

        cheers, Abhijit CodeProject MVP

        1 Reply Last reply
        0
        • M M Ambigai

          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#?

          S Offline
          S Offline
          Sneha Bisht
          wrote on last edited by
          #4

          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

          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