Merge branch 'master' of github.com:diaspora/diaspora
This commit is contained in:
commit
9748767ec9
1 changed files with 12 additions and 10 deletions
|
|
@ -3,15 +3,17 @@
|
|||
# the COPYRIGHT file.
|
||||
|
||||
Diaspora::Application.configure do
|
||||
config.action_mailer.delivery_method = :smtp
|
||||
config.action_mailer.default_url_options = {:host => APP_CONFIG[:terse_pod_url]}
|
||||
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
|
||||
}
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue