@@ -123,10 +123,10 @@ Sending to a Specified Address but with Exceptions
123
123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124
124
125
125
Suppose you want to have all email redirected to a specific address,
126
- (like in the above scenario to ``
[email protected] ``).
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 ``
[email protected] ``).
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:
130
130
131
131
.. configuration-block ::
132
132
@@ -148,16 +148,16 @@ This can be done by adding the ``delivery_whitelist`` option:
148
148
149
149
<!-- app/config/config_dev.xml -->
150
150
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" >
155
154
156
- <swiftmailer : config delivery-address =" [email protected] " />
157
- <!-- all email addresses matching this regex will *not* be redirected to [email protected] -->
158
- <swiftmailer : delivery-whitelist >/@specialdomain.com$/</swiftmailer : delivery-whitelist >
159
- <!-- all emails sent to [email protected] won't be redirected to [email protected] too -->
160
- <swiftmailer : delivery-whitelist >/^[email protected] $/</swiftmailer : delivery-whitelist >
155
+ <swiftmailer : config delivery-address =" [email protected] " >
156
+ <!-- all email addresses matching this regex will *not* be redirected to [email protected] -->
157
+ <swiftmailer : delivery-whitelist >/@specialdomain.com$/</swiftmailer : delivery-whitelist >
158
+ <!-- all emails sent to [email protected] won't be redirected to [email protected] too -->
159
+ <swiftmailer : delivery-whitelist >/^[email protected] $/</swiftmailer : delivery-whitelist >
160
+ </swiftmailer : config >
161
161
162
162
.. code-block :: php
163
163
0 commit comments