@@ -141,12 +141,9 @@ by adding the ``delivery_whitelist`` option:
141
141
swiftmailer :
142
142
delivery_address : dev@example.com
143
143
delivery_whitelist :
144
- # all email addresses matching this regex will *not* be
145
- # redirected to dev@example.com
144
+ # all email addresses matching these regexes will be delivered
145
+ # like normal, as well as being sent to dev@example.com
146
146
- ' /@specialdomain\.com$/'
147
-
148
- # all emails sent to admin@mydomain.com won't
149
- # be redirected to dev@example.com too
150
147
- ' /^admin@mydomain\.com$/'
151
148
152
149
.. code-block :: xml
@@ -162,10 +159,9 @@ by adding the ``delivery_whitelist`` option:
162
159
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd" >
163
160
164
161
<swiftmailer : config delivery-address =" dev@example.com" >
165
- <!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
162
+ <!-- all email addresses matching these regexes will be delivered
163
+ like normal, as well as being sent to dev@example.com -->
166
164
<swiftmailer : delivery-whitelist-pattern >/@specialdomain\.com$/</swiftmailer : delivery-whitelist-pattern >
167
-
168
- <!-- all emails sent to admin@mydomain.com won't be redirected to dev@example.com too -->
169
165
<swiftmailer : delivery-whitelist-pattern >/^admin@mydomain\.com$/</swiftmailer : delivery-whitelist-pattern >
170
166
</swiftmailer : config >
171
167
</container >
@@ -176,19 +172,16 @@ by adding the ``delivery_whitelist`` option:
176
172
$container->loadFromExtension('swiftmailer', array(
177
173
'delivery_address' => "dev@example.com",
178
174
'delivery_whitelist' => array(
179
- // all email addresses matching this regex will *not* be
180
- // redirected to dev@example.com
175
+ // all email addresses matching these regexes will be delivered
176
+ // like normal, as well as being sent to dev@example.com
181
177
'/@specialdomain\.com$/',
182
-
183
- // all emails sent to admin@mydomain.com won't be
184
- // redirected to dev@example.com too
185
178
'/^admin@mydomain\.com$/',
186
179
),
187
180
));
188
181
189
- In the above example all email messages will be redirected to ``dev@example.com ``,
190
- and messages sent to the ``admin@mydomain.com `` address or to any email
191
- address belonging to the domain ``specialdomain.com `` will be delivered as normal.
182
+ In the above example all email messages will be redirected to ``dev@example.com ``
183
+ and messages sent to the ``admin@mydomain.com `` address or to any email address
184
+ belonging to the domain ``specialdomain.com `` will also be delivered as normal.
192
185
193
186
Viewing from the Web Debug Toolbar
194
187
----------------------------------
0 commit comments