[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.