Update SMTP settings for Mailcatcher

This commit is contained in:
James Espinosa
2013-12-03 21:16:44 -06:00
parent 26e04deb9f
commit 1a3d6d690c
3 changed files with 6 additions and 11 deletions
+5 -1
View File
@@ -34,7 +34,11 @@ Railsgoat::Application.configure do
# Expands the lines which load the assets
config.assets.debug = true
# ActionMailer settings for email support
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
config.middleware.insert_before(
Rack::Lock, Rack::LiveReload,
:min_delay => 500,
-9
View File
@@ -1,9 +0,0 @@
ActionMailer::Base.smtp_settings = {
:address => 'mailtrap.io',
:port => 2525,
:authentication => :plain,
:user_name => ENV['MAILTRAP_USERNAME'],
:password => ENV['MAILTRAP_PASSWORD']
}
ActionMailer::Base.delivery_method = :smtp