Skip to content

Commit 660aaa1

Browse files
jverdeyenxabbuh
authored andcommitted
Update Swiftmailer configuration docs
1 parent 8dfc46f commit 660aaa1

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

email.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ The following configuration attributes are available:
8484
* ``type`` (how to queue the messages, ``file`` or ``memory`` is supported, see :doc:`/email/spool`)
8585
* ``path`` (where to store the messages)
8686
* ``delivery_address`` (an email address where to send ALL emails)
87+
* ``delivery_addresses`` (an array of email addresses where to send ALL emails)
8788
* ``disable_delivery`` (set to true to disable delivery completely)
8889

8990
Sending Emails

email/dev_environment.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ will not be sent when you run tests, but will continue to be sent in the
5353
If you'd also like to disable deliver in the ``dev`` environment, simply
5454
add this same configuration to the ``config_dev.yml`` file.
5555

56-
Sending to a Specified Address
56+
Sending to a Specified Address(es)
5757
------------------------------
5858

59-
You can also choose to have all email sent to a specific address, instead
59+
You can also choose to have all email sent to a specific address or a list of addresses, instead
6060
of the address actually specified when sending the message. This can be done
61-
via the ``delivery_address`` option:
61+
via the ``delivery_address`` or ``delivery_addresses`` option:
6262

6363
.. configuration-block::
6464

reference/configuration/swiftmailer.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,21 @@ that all emails sent during development go to a single account.
158158
This uses ``Swift_Plugins_RedirectingPlugin``. Original recipients are available
159159
on the ``X-Swift-To``, ``X-Swift-Cc`` and ``X-Swift-Bcc`` headers.
160160

161+
delivery_addresses
162+
~~~~~~~~~~~~~~~~
163+
164+
**type**: ``array``
165+
166+
If set, all email messages will be sent to this list of addresses, using the same logic as ``delivery_address``.
167+
161168
delivery_whitelist
162169
~~~~~~~~~~~~~~~~~~
163170

164171
**type**: ``array``
165172

166-
Used in combination with ``delivery_address``. If set, emails matching any
173+
Used in combination with ``delivery_address`` or ``delivery_addresses``. If set, emails matching any
167174
of these patterns will be delivered like normal, as well as being sent to
168-
``delivery_address``. For details, see the
175+
``delivery_address`` or ``delivery_addresses``. For details, see the
169176
:ref:`How to Work with Emails during Development <sending-to-a-specified-address-but-with-exceptions>`
170177
article.
171178

@@ -208,6 +215,7 @@ Full Default Configuration
208215
threshold: 99
209216
sleep: 0
210217
delivery_address: ~
218+
delivery_addresses: []
211219
disable_delivery: ~
212220
logging: '%kernel.debug%'
213221
@@ -230,6 +238,7 @@ Full Default Configuration
230238
auth_mode=""
231239
sender_address=""
232240
delivery_address=""
241+
delivery_addresses=""
233242
disable_delivery=""
234243
logging="%kernel.debug%"
235244
>

0 commit comments

Comments
 (0)