diff --git a/cookbook/email/dev_environment.rst b/cookbook/email/dev_environment.rst index 45719625773..bf16761a78b 100644 --- a/cookbook/email/dev_environment.rst +++ b/cookbook/email/dev_environment.rst @@ -119,6 +119,8 @@ the replaced address, so you can still see who it would have been sent to. These are ``X-Swift-Cc`` and ``X-Swift-Bcc`` for the ``CC`` and ``BCC`` addresses respectively. +.. _sending-to-a-specified-address-but-with-exceptions: + Sending to a Specified Address but with Exceptions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/reference/configuration/swiftmailer.rst b/reference/configuration/swiftmailer.rst index 3aaf52b858a..d9614377bb3 100644 --- a/reference/configuration/swiftmailer.rst +++ b/reference/configuration/swiftmailer.rst @@ -32,6 +32,7 @@ Configuration * `threshold`_ * `sleep`_ * `delivery_address`_ +* `delivery_whitelist`_ * `disable_delivery`_ * `logging`_ @@ -156,6 +157,15 @@ emails sent during development go to a single account. This uses ``Swift_Plugins_RedirectingPlugin``. Original recipients are available on the ``X-Swift-To``, ``X-Swift-Cc`` and ``X-Swift-Bcc`` headers. +delivery_whitelist +~~~~~~~~~~~~~~~~~~ + +**type**: ``array`` + +Used in combination with ``delivery_address``. If set, emails matching any of these +patterns will be delivered like normal, instead of being sent to ``delivery_address``. +For details, see :ref:`the cookbook entry. ` + disable_delivery ~~~~~~~~~~~~~~~~