Skip to content

Instantly share code, notes, and snippets.

@yuletide
Created September 18, 2012 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yuletide/3741017 to your computer and use it in GitHub Desktop.
Save yuletide/3741017 to your computer and use it in GitHub Desktop.
action_mailer local dev settings
# config/environments/development.rb
# current setting -- saves sent mails locally in rails_root/tmp/mails/
config.action_mailer.delivery_method = :file
# OR...
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => "smtp.gmail.com",
:port => 587,
:domain => "codeforamerica.org",
:authentication => :plain,
:user_name => "test@codeforamerica.org",
:password => "etc"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment