Skip to content

Commit

Permalink
Fix delivery_whitelist regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Gonzalo Vilaseca authored and xabbuh committed Oct 1, 2015
1 parent b39fa66 commit 56d1768
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions cookbook/email/dev_environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ by adding the ``delivery_whitelist`` option:
delivery_whitelist:
# all email addresses matching this regex will *not* be
# redirected to dev@example.com
- "/@specialdomain.com$/"
- "/@specialdomain\.com$/"
# all emails sent to admin@mydomain.com won't
# be redirected to dev@example.com too
- "/^admin@mydomain.com$/"
- "/^admin@mydomain\.com$/"
.. code-block:: xml
Expand All @@ -156,10 +156,10 @@ by adding the ``delivery_whitelist`` option:
<swiftmailer:config delivery-address="dev@example.com">
<!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
<swiftmailer:delivery-whitelist-pattern>/@specialdomain.com$/</swiftmailer:delivery-whitelist-pattern>
<swiftmailer:delivery-whitelist-pattern>/@specialdomain\.com$/</swiftmailer:delivery-whitelist-pattern>
<!-- all emails sent to admin@mydomain.com won't be redirected to dev@example.com too -->
<swiftmailer:delivery-whitelist-pattern>/^admin@mydomain.com$/</swiftmailer:delivery-whitelist-pattern>
<swiftmailer:delivery-whitelist-pattern>/^admin@mydomain\.com$/</swiftmailer:delivery-whitelist-pattern>
</swiftmailer:config>
.. code-block:: php
Expand All @@ -170,11 +170,11 @@ by adding the ``delivery_whitelist`` option:
'delivery_whitelist' => array(
// all email addresses matching this regex will *not* be
// redirected to dev@example.com
'/@specialdomain.com$/',
'/@specialdomain\.com$/',
// all emails sent to admin@mydomain.com won't be
// redirected to dev@example.com too
'/^admin@mydomain.com$/',
'/^admin@mydomain\.com$/',
),
));
Expand Down

0 comments on commit 56d1768

Please sign in to comment.