Welcome Guest, Not a member yet? Register   Sign In
user registration email - best practice
#1

[eluser]thurting[/eluser]
Hello,

I'm creating a site that will support registered users. Upon registration, users will be sent an email with a link to confirm their registration. Once they confirm their registration, they will be allowed to login. Simple enough. However, I'm worried about the situation in which a cnx to the mail server fails and the registration email does not go out. How should I handle this?

My first option is to simply allow the user to request another confirmation email when they first try to login. This is easiest, but it requires the user to actually attempt a login. My other solution is to create a column in the user table that keeps track of if the outgoing email was successful or not. Then I would create a cron to select entries from the DB where the email failed, and try to send again.

Any suggestions? Thanks.
#2

[eluser]thurting[/eluser]
O.K. So you stored a boolean in the DB and had the script run against this?




Theme © iAndrew 2016 - Forum software by © MyBB