I'm trying to get certain emails sent at a certain datetime.
So I have a column in my table called "due_by", as soon as it's overdue
is it possible to get an automatic email notification?
How do people get stuff like this to happen via. Rails without user
interaction?
You would need some sort of script that queues your table for any
email notifications that are due. An easy way to do this with your AR
models is to make a rake task which checks for any items due and sends
them.
You could have this run every 5 minutes or so using a cron job.
A more advanced solution might offload this to an external queue which
your script could poll from in an infinite loop.
A loop like that would have serious performance implications on the
server if it's hitting the database, checking a couple of values and
sending emails each trip wouldn't it?
Oh, btw Ryan, cheers for backgroundrb, that looks good. I might use
that.