Multithreading in rails


#1

Hi,

I am having a few problems with actionmailer, mainly taking to long to
send emails.

One solution I have come up with is using thread’s, pretty new to this
ruby stuff, so if anyone has any suggestions about threads and
actionmailer, please let me know

thanks
tom


#2

Take a look at Backgroundrb (http://backgroundrb.rubyforge.org/) as a
way to schedule a task (e.g. the sending of the mail itself) or the
asynchronous plugin
(http://code.inklingmarkets.com/asynchronous-rails-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