Forum: Ruby on Rails Creating a callback for ActionMailer

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ben V (Guest)
on 2007-01-24 04:47
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
This topic is locked and can not be replied to.