multithreading in rails

Take a look at Backgroundrb ( as a way to schedule a task (e.g. the sending of the mail itself) or the asynchronous plugin (

Both rely on a cron job to execute the pending jobs so maybe it is not what you are looking for if the email has to be sent right away.

Cheers, Atha