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 => “name@example.com”,
:password => ‘password’,
:authentication => “plain”,
:enable_starttls_auto => true
}
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.