So in my local dev environment everything works fine. Rails 2.3.5, Ruby 1.8.6. and require the smtp_tls plugin to send mail.
In production I have Ruby 1.8.7 So the plugin is counter productive (will error). Without the plugin I receive the following error:
Timeout::Error (execution expired): /usr/lib/ruby/1.8/timeout.rb:60:in `open' /usr/lib/ruby/1.8/net/smtp.rb:551:in `do_start' /usr/lib/ruby/1.8/net/smtp.rb:551:in `do_start' /usr/lib/ruby/1.8/net/smtp.rb:525:in `start' app/models/users_application.rb:108:in `mail_app!'
Any suggestion on where to look for a Timeout cause. It's the exact same setting file as with the plugin which does work:
### config/initializers/smtp_gmail.rb
ActionMailer::Base.smtp_settings = { :address => 'smtp.gmail.com', :port => 587, :authentication => :plain, :enable_starttls_auto => true, :user_name => "my_email@gmail.com", :password => "secret" }
Cheers, brianp