Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit 304e394

Browse files
committed
Add sendmail to production.rb
Signed-off-by: Dmitriy Zaporozhets <[email protected]>
1 parent f2442a0 commit 304e394

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

config/environments/production.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,14 @@
4848
# Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
4949
# config.assets.precompile += %w( search.js )
5050

51-
# Disable delivery errors, bad email addresses will be ignored
52-
# config.action_mailer.raise_delivery_errors = false
51+
config.action_mailer.delivery_method = :sendmail
52+
# Defaults to:
53+
# # config.action_mailer.sendmail_settings = {
54+
# # location: '/usr/sbin/sendmail',
55+
# # arguments: '-i -t'
56+
# # }
57+
config.action_mailer.perform_deliveries = true
58+
config.action_mailer.raise_delivery_errors = true
5359

5460
# Enable threaded mode
5561
# config.threadsafe!

0 commit comments

Comments
 (0)