ruby on rails - SMTP timeout error -
my rails application features mailing system, using smtp.
my application runs on localhost , in production @ office , @ home. @ corporate office there firewall, connected via ethernet, , mailing system failed , went wrong. not sure of error @ time on production , couldn't see error message. had no time test on localhost.
at corporate building, using guest wifi, , trying send mail users on localhost, got timeout error, worked on production website. error got:
net::opentimeout: execution expired ~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/smtp.rb:540:in `initialize' ~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/smtp.rb:540:in `open' ~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/smtp.rb:540:in `tcp_socket' ~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/smtp.rb:550:in `block in do_start' ~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/smtp.rb:549:in `do_start' ~/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/net/smtp.rb:519:in `start' ~/.rvm/gems/ruby-2.0.0-p0/gems/mail-2.5.3/lib/mail/network/delivery_methods/smtp.rb:136:in `deliver!' ~/.rvm/gems/ruby-2.0.0-p0/gems/mail-2.5.3/lib/mail/message.rb:2033:in `do_delivery' ~/.rvm/gems/ruby-2.0.0-p0/gems/mail-2.5.3/lib/mail/message.rb:229:in `block in deliver' ~/.rvm/gems/ruby-2.0.0-p0/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:415:in `block in deliver_mail' ~/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument' ~/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument' ~/.rvm/gems/ruby-2.0.0-p0/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument' ~/.rvm/gems/ruby-2.0.0-p0/gems/actionmailer-3.2.13/lib/action_mailer/base.rb:413:in `deliver_mail' ~/.rvm/gems/ruby-2.0.0-p0/gems/mail-2.5.3/lib/mail/message.rb:229:in `deliver' (irb):6 ~/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands/console.rb:47:in `start' ~/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands/console.rb:8:in `start' ~/.rvm/gems/ruby-2.0.0-p0/gems/railties-3.2.13/lib/rails/commands.rb:41:in `<top (required)>' script/rails:6:in `require' script/rails:6:in here setup_mail.rb file:
actionmailer::base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :domain => "domain", :user_name => "user@gmail.com", :password => "password", :authentication => "plain", :enable_starttls_auto => true } is issue port? if so, port should use , why?
how can solve timeout error? how can around firewalls? , suggestions appreciated. thanks!
Comments
Post a Comment