forked from spree/spree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add :send_core_emails config prefernce
Allow developers to use standard rails mail configuration (in config files) by setting :override_actionmailer_config to false without sending spree core emails (e.g. order confirmation). This is useful e.g. in the case where devs have opted to use an external mail API such as Mandrill for store-related emails but still want to use ActionMailer in other parts of their app. Fixes spree#3812
- Loading branch information
Showing
3 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,7 @@ class AppConfiguration < Preferences::Configuration | |
|
||
# Default mail headers settings | ||
preference :enable_mail_delivery, :boolean, :default => false | ||
preference :send_core_emails, :boolean, :default => true | ||
preference :mails_from, :string, :default => '[email protected]' | ||
preference :mail_bcc, :string, :default => '[email protected]' | ||
preference :intercept_email, :string, :default => nil | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters