@@ -123,10 +123,10 @@ Sending to a Specified Address but with Exceptions
123123~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124124
125125Suppose you 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
128- after all, and not be redirected (even if it is in the dev environment).
129- This can be done by adding the ``delivery_whitelist `` option:
126+ (like in the above scenario to ``dev@example.com ``). But then you may want
127+ email sent to some specific email addresses to go through after all, and
128+ not be redirected (even if it is in the dev environment). This can be done
129+ by adding the ``delivery_whitelist `` option:
130130
131131.. configuration-block ::
132132
@@ -148,16 +148,16 @@ This can be done by adding the ``delivery_whitelist`` option:
148148
149149 <!-- app/config/config_dev.xml -->
150150
151- <!--
152- xmlns:swiftmailer="http://symfony.com/schema/dic/swiftmailer"
153- http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd
154- -->
151+ <?xml version =" 1.0" charset =" UTF-8" ?>
152+ <container xmlns =" http://symfony.com/schema/dic/services"
153+ xmlns : swiftmailer =" http://symfony.com/schema/dic/swiftmailer" >
155154
156- <swiftmailer : config delivery-address =" dev@example.com" />
157- <!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
158- <swiftmailer : delivery-whitelist >/@specialdomain.com$/</swiftmailer : delivery-whitelist >
159- <!-- all emails sent to admin@mydomain.com won't be redirected to dev@example.com too -->
160- <swiftmailer : delivery-whitelist >/^admin@mydomain.com$/</swiftmailer : delivery-whitelist >
155+ <swiftmailer : config delivery-address =" dev@example.com" >
156+ <!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
157+ <swiftmailer : delivery-whitelist >/@specialdomain.com$/</swiftmailer : delivery-whitelist >
158+ <!-- all emails sent to admin@mydomain.com won't be redirected to dev@example.com too -->
159+ <swiftmailer : delivery-whitelist >/^admin@mydomain.com$/</swiftmailer : delivery-whitelist >
160+ </swiftmailer : config >
161161
162162 .. code-block :: php
163163
0 commit comments