I'm trying to figure out a good solution for sending email notifications based on user preference. Users can set up notifications to come
- Everytime the event occurs
- Once an hour
- Once a day
- Once a week
Would the best way to do this be to set up a crontab that runs a .php every minute checking to see if anything needs to be sent out? Is there another way/more efficient way to schedule something like this?