Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7706651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:10:23+00:00 2026-06-01T00:10:23+00:00

I tried some codes but after it is send to mail account, it is

  • 0

I tried some codes but after it is send to mail account, it is always the active how can it become passive link .

                   string UName = GetNewValidationCode();
                    // Now lets create an email message
                    SmtpClient SmtpServer = new SmtpClient("smtp.live.com");

        var mail = new MailMessage();
        mail.From = new MailAddress("bilkentliaslan@windowslive.com");
        mail.To.Add(TextBox6.Text);
        mail.Subject = "Registration";
        mail.IsBodyHtml = true;
        string htmlBody;
        htmlBody = string.Format("Thank you for creating an account with YourDomain.com</ br>"+"Please click the below link to activate your account <br />"+"<a href='http://localhost:2386/ActivateUser.aspx?userName{0}&Id={1}'>Activate {0} </a>", UName, user_name);
        mail.Body = htmlBody;

        SmtpServer.Port = 587;
        SmtpServer.UseDefaultCredentials = false;
        SmtpServer.Credentials = new System.Net.NetworkCredential("bilkentliaslan@windowslive.com", "my password");
        SmtpServer.EnableSsl = true;
        SmtpServer.Send(mail);

                    // Redirecto to What ever page
                    Response.Redirect("Login.aspx");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T00:10:24+00:00Added an answer on June 1, 2026 at 12:10 am

    Keep a table that stores the waiting IDs, i.e., the IDs that you have sent an email about, but which are not yet activated.

    Then in the code of your ActivateUser.aspx (actually in the back-end code that that page then calls), check if the row exists, perform the user activation work and then remove the row from the table. If the user then goes to the very same URL again later, the row won’t be there and the user won’t be (re-)activated.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried following some of the code from here and here , but I
I've seen some code such as: out.println(print something); I tried import java.lang.System; but it's
I was writing some codes in linux using c. When tried to compiled, I
I have done some research and found that I can use: string retUrl =
I'm parsing some data using DOMDocument after fetching HTML file using curl. The codes
I am learning RX (Reactive Extensions), I tried to use some code samples from
I've tried some tools for generate automatically class diagrams from the java source code
I was trying to speed up some code, and then I tried compiling a
I tried to port code some from the FANN Lib (neuronal network written in
Recently I tried to explain some poorly designed code to my project manager. All

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.