trying the mailer_condig
This commit is contained in:
parent
9c59adee51
commit
ad348ed24c
2 changed files with 17 additions and 12 deletions
|
|
@ -24,16 +24,4 @@ Diaspora::Application.configure do
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
config.middleware.use MongoMapper::ClearDevMemory
|
config.middleware.use MongoMapper::ClearDevMemory
|
||||||
#config.threadsafe!
|
#config.threadsafe!
|
||||||
|
|
||||||
config.action_mailer.delivery_method = :smtp
|
|
||||||
config.action_mailer.default_url_options = {:host => 'pivots.joindiaspora.com'}
|
|
||||||
config.action_mailer.smtp_settings = {
|
|
||||||
:address => 'smtp.gmail.com',
|
|
||||||
:port => 587,
|
|
||||||
:domain => 'mail.joindiaspora.com',
|
|
||||||
:authentication => 'plain',
|
|
||||||
:user_name => 'diaspora-pivots@joindiaspora.com',
|
|
||||||
:password => "xy289|]G+R*-kA",
|
|
||||||
:enable_starttls_auto => true
|
|
||||||
}
|
|
||||||
end
|
end
|
||||||
|
|
|
||||||
17
config/initializers/mailer_config.rb
Normal file
17
config/initializers/mailer_config.rb
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# 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.delivery_method = :smtp
|
||||||
|
config.action_mailer.default_url_options = {:host => 'pivots.joindiaspora.com'}
|
||||||
|
config.action_mailer.smtp_settings = {
|
||||||
|
:address => 'smtp.gmail.com',
|
||||||
|
:port => 587,
|
||||||
|
:domain => 'mail.joindiaspora.com',
|
||||||
|
:authentication => 'plain',
|
||||||
|
:user_name => 'diaspora-pivots@joindiaspora.com',
|
||||||
|
:password => "xy289|]G+R*-kA",
|
||||||
|
:enable_starttls_auto => true
|
||||||
|
}
|
||||||
|
end
|
||||||
Loading…
Reference in a new issue