Forum Moderators: phranque
Then each evening, a cron job is run to check the notification file against any new entries to the database for that day. An email is sent to the user if a match is found with a link to the new database entry, and a link to delete the notifier. Great for the user who wants notifications, great for my site that wants hits.
So far, so good. Everything is hunky-dory as long as all users behave. But I have thought of a hole: suppose someone puts a bogus email address in the form field (not theirs) so that the notification would be sent elsewhere?
I thought about setting up a password system to verify that that person is the person with the email address entered. (put in your email address, get your password kind of thing, then log on with it). But its really a small site and the extra time for the user to check the email seems kind of a waste.
I've seen other VERY large sites do what I'm doing without any verification of email. On top of that, what about 'send this page to a friend' stuff. Isn't that the same kind of thing?
I'm open to suggestions on this, and any comments about any other caveats that I might run into.
:)