Based on: YAML Mail Config Plugin
script/plugin install svn://rubyforge.org/var/svn/slantwise/yaml_mail_config/trunk yaml_mail_config
ActionMailer::Base.server_settings block in config/environment.rb.
config/email.ymldevelopment: server: smtp.gmail.com port: 587 domain: mycompany.com authentication: login username: username password: password production: server: smtp.gmail.com port: 587 domain: mycompany.com authentication: login username: username password: password
Some examples have tls: true at the end of the production settings. I found that this caused problems in my Rails app. I did not bother to look for the reason, so I just removed it.