From cca4830fd57046d66809b3face89e8ef518db90e Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 10 Jul 2013 14:30:34 -0400 Subject: [PATCH] added mailer config for production env --- config/environments/production.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 65493518..8b1bf0f9 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -13,6 +13,19 @@ ISSAD::Application.configure do # Compress JavaScripts and CSS config.assets.compress = true + + config.action_mailer.delivery_method = :smtp + config.action_mailer.smtp_settings = { + address: 'mail.metamaps.cc', + port: 587, + user_name: 'team@metamaps.cc', + password: 'RcxX+s:fht49UX', + authentication: 'plain', + enable_starttls_auto: true, + openssl_verify_mode: 'none' } + config.action_mailer.default_url_options = { :host => 'metamaps.cc' } + # Don't care if the mailer can't send + config.action_mailer.raise_delivery_errors = true # Don't fallback to assets pipeline if a precompiled asset is missed config.assets.compile = false