Kleber S.
Kleber S.

Reputation: 8250

Rails 3.2.2 - Right place for Mail configuration settings on Production

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?

  1. config/environment.rb?
  2. config/application.rb?
  3. config/environments/production.rb?
  4. 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 }

Upvotes: 0

Views: 940

Answers (1)

Kleber S.
Kleber S.

Reputation: 8250

Strange but seems that Google are only allowing Gmail accounts to use with their servers, I have just to create a new Gmail account and it works with no kind of special settings.

Upvotes: 0

Related Questions