vigneshpanneer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2014-Feb-21 20:43 UTC
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.default_url_options = { :host => 'mydomain.com } > ActionMailer::Base.smtp_settings = { > :address => "smtp.gmail.com", > :port => 587, > :domain => "mydomain.com", > :user_name => "support-3Q2Tfjf0mexWk0Htik3J/w@public.gmane.org", > :password => "password", > :authentication => "plain" , > :enable_starttls_auto => true > } > > 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/651058a1-5a8e-42f6-b598-cd9d7325b282%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.