Browse Source

production mailing

pull/1/head
Nicolae Claudius 14 years ago
parent
commit
1f0fd5a798
  1. 12
      config/environments/production.rb
  2. 2
      config/initializers/devise.rb

12
config/environments/production.rb

@ -57,4 +57,16 @@ Simpledns::Application.configure do
# Send deprecation notices to registered listeners
config.active_support.deprecation = :notify
config.action_mailer.default_url_options = { :host => 'http://simpledns.heroku.com' }
config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => "smtp.gmail.com",
:port => 587,
:domain => 'simpledns.heroku.com',
:user_name => 'simpledns.office',
:password => 'jablonskis',
:authentication => 'plain',
:enable_starttls_auto => true
}
end

2
config/initializers/devise.rb

@ -4,7 +4,7 @@ Devise.setup do |config|
# ==> Mailer Configuration
# Configure the e-mail address which will be shown in Devise::Mailer,
# note that it will be overwritten if you use your own mailer class with default "from" parameter.
config.mailer_sender = "please-change-me-at-config-initializers-devise@example.com"
config.mailer_sender = "office@simpledns.net"
# Configure the class responsible to send e-mails.
# config.mailer = "Devise::Mailer"

Loading…
Cancel
Save