Commit 21eedc8f

mo khan <mo@mokhan.ca>
2014-01-08 00:04:05
add config to development environment to send emails.
1 parent 7c424bb
Changed files (1)
config
environments
config/environments/development.rb
@@ -26,6 +26,17 @@ Cake::Application.configure do
   # This option may cause significant delays in view rendering with a large
   # number of complex assets.
   config.assets.debug = true
+
+  config.action_mailer.smtp_settings = {
+    :address              => ENV['SMTP_HOST'],
+    :port                 => ENV['SMTP_PORT'],
+    :domain               => ENV['SMTP_DOMAIN'],
+    :user_name            => ENV['SMTP_USERNAME'],
+    :password             => ENV['SMTP_PASSWORD'],
+    :authentication       => :plain,
+    :enable_starttls_auto => true
+  }
+
   config.after_initialize do
     Bullet.enable = true
     Bullet.alert = true