Browse the Ruby on Rails Community.

You are here: Browse Railsplugins Yaml Mail Config

Yaml Mail Config

= YAML Mail Config

YAML Mail Config moves ActionMailer configuration to a YAML file in your config/ folder, just like your database definitions.

Install with:

script/plugin install svn://rubyforge.org/var/svn/slantwise/yaml_mail_config/trunk yaml_mail_config

To use, simply create a config/email.yml file that follows the sample pattern below. (A sample email.yml template file is found in the templates/ directory of this plugin.)

Sample:

development:
  server: mail.domain.com
  port: 25
  domain: domain.com
  authentication: login
  username: email_account_login
  password: email_account_password
production:
  server: mail.domain.com
  port: 465
  domain: domain.com
  authentication: login
  username: email_account_login
  password: email_account_password
  tls: true

Thanks to Sebastien Grosjean (http://seb.box.re/) for the idea and the initial codebase for this plugin!

NOTE: This description has been extracted from the Plugin README and so the formatting may need updating to make browser friendly