E-mail validation link

2012-07-19 Thread Pierre Goupil
Good evening,

I'm currently trying to send a validation e-mail when a user creates an
account. I'd link to provide a link in order to confirm the subscription.

Is there any recommended way to do that? In particular, I don't know how to
write the href of the Link in my e-mail.

Any help will be much appreciated.

Regards,

Pierre Goupil

-- 
Le bonheur n'est pas une destination, mais une façon de voyager.

Papa d'une petite Lou-Ann depuis le 30 juin.


Re: E-mail validation link

2012-07-19 Thread Josh Kamau
I do something like this :


   1. Create a confirmation page that takes a confirmation code as a page
   parameter
   2. Mount a page to a url that looks like
   http://domain.com/confirmation?code=somesupersecretcode
   3. When a user registers, i generate the code and put it somewhere in
   the database
   4. I then send him the link as in (2) above but with user specific code
   5. When the user tries to login, i extract the code and check if its
   valid.

Am sure there could be other more clever techniques Will be watching
this thread.

Josh.

On Thu, Jul 19, 2012 at 9:45 PM, Pierre Goupil goupilpie...@gmail.comwrote:

 Good evening,

 I'm currently trying to send a validation e-mail when a user creates an
 account. I'd link to provide a link in order to confirm the subscription.

 Is there any recommended way to do that? In particular, I don't know how to
 write the href of the Link in my e-mail.

 Any help will be much appreciated.

 Regards,

 Pierre Goupil

 --
 Le bonheur n'est pas une destination, mais une façon de voyager.

 Papa d'une petite Lou-Ann depuis le 30 juin.



Re: E-mail validation link

2012-07-19 Thread Pierre Goupil
Thanks Josh! :-) We'll be watching together to see if anyone has other cool
solutions!

Regards,

Pierre



On Thu, Jul 19, 2012 at 8:55 PM, Josh Kamau joshnet2...@gmail.com wrote:

 I do something like this :


1. Create a confirmation page that takes a confirmation code as a page
parameter
2. Mount a page to a url that looks like
http://domain.com/confirmation?code=somesupersecretcode
3. When a user registers, i generate the code and put it somewhere in
the database
4. I then send him the link as in (2) above but with user specific code
5. When the user tries to login, i extract the code and check if its
valid.

 Am sure there could be other more clever techniques Will be watching
 this thread.

 Josh.

 On Thu, Jul 19, 2012 at 9:45 PM, Pierre Goupil goupilpie...@gmail.com
 wrote:

  Good evening,
 
  I'm currently trying to send a validation e-mail when a user creates an
  account. I'd link to provide a link in order to confirm the subscription.
 
  Is there any recommended way to do that? In particular, I don't know how
 to
  write the href of the Link in my e-mail.
 
  Any help will be much appreciated.
 
  Regards,
 
  Pierre Goupil
 
  --
  Le bonheur n'est pas une destination, mais une façon de voyager.
 
  Papa d'une petite Lou-Ann depuis le 30 juin.
 




-- 
Le bonheur n'est pas une destination, mais une façon de voyager.

Papa d'une petite Lou-Ann depuis le 30 juin.


Re: E-mail validation link

2012-07-19 Thread Michal Margiel
Hello,

I've  implemented this in the same way as Josh does.
My code for register participant for our conference[1] is open source. You
can view it here[2]
in particular:
https://bitbucket.org/margielm/confitura/src/06588ec117c8/src/main/java/jelatyna/pages/confitura/registration/form/RegistrationForm.java

https://bitbucket.org/margielm/confitura/src/06588ec117c8/src/main/java/jelatyna/pages/confitura/registration/Registration.java



[1] www.confitura.pl
[2]  https://bitbucket.org/margielm/confitura

-- 
Pozdrawiam/Best regards
Michał Margiel

http://www.confitura.pl (dawniej Javarsovia)
http://www.linkedin.com/in/MichalMargiel
http://www.margiel.eu


Re: E-mail validation link

2012-07-19 Thread Pierre Goupil
It looks nice, Michal! I'm browsing it and I'll come back here if I have
any questions, if it doesn't bother you.

Thanks all!

Regards,

Pierre



On Thu, Jul 19, 2012 at 9:10 PM, Michal Margiel michal.marg...@gmail.comwrote:

 Hello,

 I've  implemented this in the same way as Josh does.
 My code for register participant for our conference[1] is open source. You
 can view it here[2]
 in particular:

 https://bitbucket.org/margielm/confitura/src/06588ec117c8/src/main/java/jelatyna/pages/confitura/registration/form/RegistrationForm.java


 https://bitbucket.org/margielm/confitura/src/06588ec117c8/src/main/java/jelatyna/pages/confitura/registration/Registration.java



 [1] www.confitura.pl
 [2]  https://bitbucket.org/margielm/confitura

 --
 Pozdrawiam/Best regards
 Michał Margiel

 http://www.confitura.pl (dawniej Javarsovia)
 http://www.linkedin.com/in/MichalMargiel
 http://www.margiel.eu




-- 
Le bonheur n'est pas une destination, mais une façon de voyager.

Papa d'une petite Lou-Ann depuis le 30 juin.


Re: E-mail validation link

2012-07-19 Thread Michal Margiel
2012/7/19 Pierre Goupil goupilpie...@gmail.com

 It looks nice, Michal! I'm browsing it and I'll come back here if I have
 any questions, if it doesn't bother you.


No problemo! we are here to help each other. So bug me as much as you want
;)

btw. I was doing this for the first time. So if anyone has better, or at
least different,  idea -  I am eager to hear it!
-- 
Pozdrawiam/Best regards
Michał Margiel

http://www.confitura.pl (dawniej Javarsovia)
http://www.linkedin.com/in/MichalMargiel
http://www.margiel.eu