You could create a message queue in a shared database of some sort. All
applications insert their “to send” emails into the message queue
(database table) and a regular job starts up and reads in the details
and tries to send them. If it manages to send it, it cleans up for this
record (i.e, deletes the item from the table and/ or informs someone).
If it doesn’t manage to send the email, it increments some sort of
“retry count” in the database and waits again. If a message fails to go
after a certain number of tries, it simply marks the message as
undeliverable and removes it from the message queue to a “failed items”
Now, I wonder if there is a message queue implementation in Ruby that
1/28/2009 | 11:50 AM.