|Posted: Thu, 2005-10-20 07:16|
I've decided to learn how to create G2 modules by creating a Notifications module. My idea is that it'll listen for various events, look for users that want notification, log the events, then periodically check the log and send an group of notifications by email.
I'm just getting started. So far it looks like I'll need to insert some events into other modules, like for adding a comment and registering a new user. Then I'll need to figure out how to use database storage ... how to send emails, etc.
That's all fine, I can look around for examples of how to do those things. But what about periodic checks for whether emails need to be sent? Suppose, for instance, that I set it to send notifications every 30 minutes, tops. How can I make that happen? I basically need cron ...