Skip to content

Instantly share code, notes, and snippets.

@kyamaguchi
Created June 14, 2012 11:35
Show Gist options
  • Save kyamaguchi/2929788 to your computer and use it in GitHub Desktop.
Save kyamaguchi/2929788 to your computer and use it in GitHub Desktop.
Email settings with MockSMTP
# config/initializers/setup_email.rb
if Rails.env.development?
ActionMailer::Base.default_url_options[:host] = "localhost:3000"
ActionMailer::Base.smtp_settings = {
:address => "localhost",
:port => 1025,
:domain => "localhost"
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment