8000 Added improvments from @WouterJ · symfony/symfony-docs@217811d · GitHub
[go: up one dir, main page]

Skip to content

Commit 217811d

Browse files
TerjeBrweaverryan
authored andcommitted
Added improvments from @wouterj
1 parent a4af6a0 commit 217811d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

cookbook/email/dev_environment.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,10 @@ the replaced address, so you can still see who it would have been sent to.
122122
Sending to a Specified Address, but with exceptions
123123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124124

125-
Suppose you want to have all email sent to a specific address, instead
126-
of the address actually specified when sending the message (like in the above scenario),
127-
but you want certain email addresses not to be redirected in this way.
125+
Suppose you normally in your dev environment want to have all email redirected to a specific address,
126+
(like in the above scenario to ``dev@example,com``).
127+
But then you may want email sent to some specific email addresses to go through after all,
128+
and not be redirected (even if it is in the dev environment).
128129
This can be done by adding the ``delivery_whitelist`` option:
129130

130131
.. configuration-block::
@@ -135,7 +136,12 @@ This can be done by adding the ``delivery_whitelist`` option:
135136
swiftmailer:
136137
delivery_address: dev@example.com
137138
delivery_whitelist:
139+
# all email addresses matching this regex will *not* be
140+
# redirected to dev@example.com
138141
- "/@mydomain.com$/"
142+
143+
# all emails sent to admin@specialdomain.com won't
144+
# be redirected to dev@example.com too
139145
- 437A "/^admin@specialdomain.com$/"
140146
141147
.. code-block:: xml

0 commit comments

Comments
 (0)
0