You are here: RE: [PHP] confirmation email script/code « PHP « IT news, forums, messages
RE: [PHP] confirmation email script/code

Posted by Jim Moseby on 10/10/62 11:26

> has anybody come across a really good 'open source' chunk of code for
> sending/recieving confirmation emails from an app... i'd like
> to allow the
> user to register, and send them an email that they then have
> to hit the link
> to complete the process..

It is strightforward to write this yourself. In my simple example, I
generate a 32 byte random ID when the user registers and save it along with
his data in the DB. Then, I send him an email with a link like this:

www.example.com/register.php?id=7H7dh869ha320J6GhAs89L0lJ00j09df?action=conf
irm

When he clicks the link, I flip a flag in his DB record that he has
confirmed.

I have cron periodically go and clean up unconfirmed records that have timed
out.

JM

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация