Skip to content

Instantly share code, notes, and snippets.

@nlevchuk
Last active January 2, 2016 19: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 nlevchuk/8347950 to your computer and use it in GitHub Desktop.
Save nlevchuk/8347950 to your computer and use it in GitHub Desktop.
rails dev environment and MockSmtp (for catching mails on dev machine) \n MacOS X \n config/environments/development.rb
Example::Application.configure do
....
ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {:address => "localhost", :port => 1025, :domain => 'example.com'}
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment