Skip to content

Commit 95b154c

Browse files
committed
minor #5684 Fix delivery_whitelist regex (gonzalovilaseca)
This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #5684). Discussion ---------- Fix delivery_whitelist regex Commits ------- 56d1768 Fix delivery_whitelist regex
2 parents b39fa66 + 56d1768 commit 95b154c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cookbook/email/dev_environment.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,11 +140,11 @@ by adding the ``delivery_whitelist`` option:
140140
delivery_whitelist:
141141
# all email addresses matching this regex will *not* be
142142
# redirected to [email protected]
143-
- "/@specialdomain.com$/"
143+
- "/@specialdomain\.com$/"
144144
145145
# all emails sent to [email protected] won't
146146
# be redirected to [email protected] too
147-
147+
- "/^admin@mydomain\.com$/"
148148
149149
.. code-block:: xml
150150
@@ -156,10 +156,10 @@ by adding the ``delivery_whitelist`` option:
156156
157157
<swiftmailer:config delivery-address="[email protected]">
158158
<!-- all email addresses matching this regex will *not* be redirected to [email protected] -->
159-
<swiftmailer:delivery-whitelist-pattern>/@specialdomain.com$/</swiftmailer:delivery-whitelist-pattern>
159+
<swiftmailer:delivery-whitelist-pattern>/@specialdomain\.com$/</swiftmailer:delivery-whitelist-pattern>
160160
161161
<!-- all emails sent to [email protected] won't be redirected to [email protected] too -->
162-
<swiftmailer:delivery-whitelist-pattern>/^[email protected]$/</swiftmailer:delivery-whitelist-pattern>
162+
<swiftmailer:delivery-whitelist-pattern>/^admin@mydomain\.com$/</swiftmailer:delivery-whitelist-pattern>
163163
</swiftmailer:config>
164164
165165
.. code-block:: php
@@ -170,11 +170,11 @@ by adding the ``delivery_whitelist`` option:
170170
'delivery_whitelist' => array(
171171
// all email addresses matching this regex will *not* be
172172
// redirected to [email protected]
173-
'/@specialdomain.com$/',
173+
'/@specialdomain\.com$/',
174174
175175
// all emails sent to [email protected] won't be
176176
// redirected to [email protected] too
177-
177+
'/^admin@mydomain\.com$/',
178178
),
179179
));
180180

0 commit comments

Comments
 (0)