How to schedule emails to send out

Posted by luckytaxi on Stack Overflow See other posts from Stack Overflow or by luckytaxi
Published on 2010-04-03T15:27:24Z Indexed on 2010/04/03 15:33 UTC
Read the original article Hit count: 322

Filed under:
|

Using PHP, I have a query that goes through my DB looking for pending tasks with reminder triggers at certain times of the day. I have a cronjob that runs every 10 mins and checks the DB for any rows that has "remind_me" field set to go off within the next 10 mins. If it does find something, what's the best way to queue an email with the task information?

I guess I'll need some sort of message queue system, but how does the email part work? Will I need another cronjob that runs every minute to check the queue system?

© Stack Overflow or respective owner

Related posts about php

Related posts about message-queue