Action mailer + smtp.gmail.com = timeout

Hi,
I’m using google’s smtp server for sending mail using action mailer.
This
is my mailer config

ActionMailer::Base.delivery_method = :smtp

ActionMailer::Base.perform_deliveries = true
ActionMailer::Base.raise_delivery_errors = true

I’m behind a firewall and I’m able to connect using telnet smtp.gmail.com 587
When I try to send mail using action mailer at times the mails are sent
but
most of the times I end up with timeout.
#<Net::OpenTimeout: execution expired>

Please Help

  • Vignesh

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