It's a little bit confusing since every people say it's going on a different place of the application.
I'have been testing but with no luck.
So, whereś the right place for it?
- config/environment.rb?
- config/application.rb?
- config/environments/production.rb?
- config/initializers/anymodelname.rb?
This is what I have been testing on several places.
ActionMailer::Base.smtp_settings = { :address => "smtp.gmail.com", :port => 587, :user_name => "[email protected]", :password => 'password', :authentication => "plain", :enable_starttls_auto => true }
config/environments/$RAILS_ENV.rbfile soconfig/environments/production.rbwould be the place to put it. When you say it does not work what errors are you getting?