rails/rails — Issue #4551: Rails 3.2.0.rc2 - ActionMailer config not working
Author: threez
Created: 2012-01-20 08:01:01+00:00
State: open

I can't setup the action mailer smtp service.

This is the configuration in my **development.rb**

```ruby
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
```

When i then start a shell session (**rails c**), one can see that the configuration was not applied.

```shell
/Users/threez/Development/frontend [threez] (master) $ RAILS_ENV=development rails c
Loading development environment (Rails 3.2.0.rc2)
jruby-1.6.5 :003 > Frontend::Application.config.action_mailer
=> #:smtp, :smtp_settings=>{:address=>"localhost", :port=>1025}, :raise_delivery_errors=>false, :assets_dir=>"/Users/threez/Development/frontend/public", :javascripts_dir=>"/Users/threez/Development/frontend/public/javascripts", :stylesheets_dir=>"/Users/threez/Development/frontend/public/stylesheets", :asset_path=>nil, :asset_host=>nil, :relative_url_root=>nil}>
jruby-1.6.5 :004 > Mail.delivery_method
=> #"localhost", :port=>25, :domain=>"localhost.localdomain", :user_name=>nil, :password=>nil, :authentication=>nil, :enable_starttls_auto=>true, :openssl_verify_mode=>nil}>
```