Detect an external email address
-
Hi all, I am trying to code a procedure in VB.Net where a user clicks on a link and the page detects the email of the person. This way I will be able to validate that it is a new user who has accessed the activation aspx page. Currently, I have the follwing:
IF Request.QueryString("uid") > 0 THEN 'activate user ELSE 'display error message END IF
I can also query the DB to see if the userID is > 0 AND if the activation status is false, but it is still not specific enough. If I can include his EMAIL ADDRESS in the query, I will have solved the issue. Thanks for your help! -
Hi all, I am trying to code a procedure in VB.Net where a user clicks on a link and the page detects the email of the person. This way I will be able to validate that it is a new user who has accessed the activation aspx page. Currently, I have the follwing:
IF Request.QueryString("uid") > 0 THEN 'activate user ELSE 'display error message END IF
I can also query the DB to see if the userID is > 0 AND if the activation status is false, but it is still not specific enough. If I can include his EMAIL ADDRESS in the query, I will have solved the issue. Thanks for your help!Well because your user might have a browser but not an email client or multiple registered emails, there's no linkage between machine and email address or browser and email address so you're basically going to have to add another variable to your querysting to include their registered email (I'm assuming your link is sent out via mail a la a forum registration message).
-
Well because your user might have a browser but not an email client or multiple registered emails, there's no linkage between machine and email address or browser and email address so you're basically going to have to add another variable to your querysting to include their registered email (I'm assuming your link is sent out via mail a la a forum registration message).
-
Thanks for the answer! I see what you mean.. query the email that they input and send it to his email.. when it arrives back to the application, it will be there ready for me to query! Sometimes the solution is soo simple! Thanks again :D
My only extension would be to encrypt the value on the way out and then decode it in your page's code when they come back. Just because someone might mess around with the URL, randomly entering IDs and email combinations. It's unlikely I'll admit but it's just one of those things I end up doing just for peace of mind.
-
My only extension would be to encrypt the value on the way out and then decode it in your page's code when they come back. Just because someone might mess around with the URL, randomly entering IDs and email combinations. It's unlikely I'll admit but it's just one of those things I end up doing just for peace of mind.