Creating a callback for ActionMailer

Hello,
in my application I use Actionmailer with Google Apps over TLS to send
email from a forgotten password form. Unfortunately, sometimes it fails
to deliver the mail. In this event, I have a simple rescue block, but it
takes a while to timeout, meaning it will take 30+ seconds to catch the
error. Unfortunately, I can’t have the same SMTP timeout for each part
of the application. Is there any way for me to create a callback that
errors out after 15 seconds by running two threads simultaneously
possibly?
Thanks,
Ben

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs