Welcome to mirror list, hosted at ThFree Co, Russian Federation.

mailer_config.rb « initializers « config - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cbc5f73307d038dd28f1adeecc3814951a8104c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#   Copyright (c) 2010, Diaspora Inc.  This file is
#   licensed under the Affero General Public License version 3 or later.  See
#   the COPYRIGHT file.

Diaspora::Application.configure do
  config.action_mailer.default_url_options = {:host => APP_CONFIG[:terse_pod_url]}
  unless Rails.env == 'test'
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      :address => APP_CONFIG[:smtp_address],
      :port => APP_CONFIG[:smtp_port],
      :domain => APP_CONFIG[:smtp_domain],
      :authentication => APP_CONFIG[:smtp_authentication],
      :user_name => APP_CONFIG[:smtp_username],
      :password => APP_CONFIG[:smtp_password],
      :enable_starttls_auto => true
    }
  end
end