add action mailer init
This commit is contained in:
@@ -293,9 +293,8 @@ module Danbooru
|
|||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# If you wish to proxy emails through Amazon SES
|
|
||||||
def amazon_ses
|
def amazon_ses
|
||||||
# {:smtp_server_name => "smtp server name", :user_name => "amazon user name", :ses_smtp_user_name => "smtp user name", :ses_smtp_password => "smtp password"}
|
# {:smtp_server_name => "smtp server", :user_name => "user name", :ses_smtp_user_name => "smtp user name", :ses_smtp_password => "smtp password"}
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
9
config/initializers/z_action_mailer.rb
Normal file
9
config/initializers/z_action_mailer.rb
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
if Danbooru.config.amazon_ses && Rails.env == "production"
|
||||||
|
Danbooru::Application.config.action_mailer.smtp_settings = {
|
||||||
|
:address => Danbooru.config.amazon_ses[:smtp_server_name],
|
||||||
|
:user_name => Danbooru.config.amazon_ses[:smtp_user_name],
|
||||||
|
:password => Danbooru.config.amazon_ses[:smtp_password],
|
||||||
|
:authentication => :login,
|
||||||
|
:enable_starttls_auto => true
|
||||||
|
}
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user