If the RAILS_ENV is not test, open up RAILS_ROOT/config/email.yml and set ActionMailer::Base‘s SMTP settings using that.
[Validate]