From 951503819e067ee87569137111016e375d7b6a2b Mon Sep 17 00:00:00 2001 From: Aditya Sanghi Date: Tue, 7 Aug 2012 00:08:25 +0530 Subject: add changelog for #7202 --- actionmailer/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/actionmailer/CHANGELOG.md b/actionmailer/CHANGELOG.md index 96cfb43e0b..68d7c7db93 100644 --- a/actionmailer/CHANGELOG.md +++ b/actionmailer/CHANGELOG.md @@ -1,5 +1,12 @@ ## Rails 4.0.0 (unreleased) ## +* Prevent mail from being delievered within the mailer actions by setting `perform_deliveries: false` *Aditya Sanghi* + + mail :to => user.email, :subject => "Campaign", :perform_deliveries => user.sendable? + + Global perform_deliveries flag when set to false is not overridden however. This allows you to stop some emails + from being delivered based on Spam Content/Unsubscribed User criterion from within the mailer action. + * Allow to set default Action Mailer options via `config.action_mailer.default_options=` *Robert Pankowecki* * Raise an `ActionView::MissingTemplate` exception when no implicit template could be found. *Damien Mathieu* -- cgit v1.2.3