verfying user's email address

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hi all,

I need to verify that the supplied email address is valid or not. So, here's my situation:
- In my <profile> area, I created <isVerified> property.
- Suppose a new user has been created. I set the profile.isverified to false.
OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerified> property to true and set the <isApproved> to true, so he can start log in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for membership database.

Thanks in advance,
Mike
 
Hi,
Do you really want us to develop this for you? first of all, for security sake, you should encrypt your parameters so the user can't build it's own query string at least as a bare minimum using base64 encoding. after that, you'll need 2 pages (you could do with one, but let's save the assle) one for registering, one for verifying... it's as simple as h*** if you've ever done some asp.net.

If your problem is to send e-mails here's an example :
http://msdn2.microsoft.com/en-us/library/ms173026.aspx

I hope it helps

ThunderMusic
Hi all,

I need to verify that the supplied email address is valid or not. So, here's my situation:
- In my <profile> area, I created <isVerified> property.
- Suppose a new user has been created. I set the profile.isverified to false.
OnCreatedUser event I'll send him an email (to the supplied email address) to verify their email address with a link in it to an ASPX page that'll do the verification, e.g: verify.aspx?u=aUserName
- On page_load of verify.aspx, I want to change the <isVerified> property to true and set the <isApproved> to true, so he can start log in.

How to do this? I'm using ASP.NET 2.0 (VB.NET) and MSSQL 2K for membership database.

Thanks in advance,
Mike
 
Back
Top