@@ -138,11 +138,11 @@ This can be done by adding the ``delivery_whitelist`` option:
138
138
delivery_whitelist :
139
139
# all email addresses matching this regex will *not* be
140
140
# redirected to dev@example.com
141
- - " /@mydomain .com$/"
141
+ - " /@specialdomain .com$/"
142
142
143
- # all emails sent to admin@specialdomain .com won't
143
+ # all emails sent to admin@mydomain .com won't
144
144
# be redirected to dev@example.com too
145
- - " /^admin@specialdomain .com$/"
145
+ - " /^admin@mydomain .com$/"
146
146
147
147
.. code-block :: xml
148
148
@@ -155,9 +155,9 @@ This can be done by adding the ``delivery_whitelist`` option:
155
155
156
156
<swiftmailer : config delivery-address =" dev@example.com" />
157
157
<!-- all email addresses matching this regex will *not* be redirected to dev@example.com -->
158
- <swiftmailer : delivery-whitelist >/@mydomain .com$/</swiftmailer : delivery-whitelist >
159
- <!-- all emails sent to admin@specialdomain .com won't be redirected to dev@example.com too -->
160
- <swiftmailer : delivery-whitelist >/^admin@specialdomain .com$/</swiftmailer : delivery-whitelist >
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 >
161
161
162
162
.. code-block :: php
163
163
@@ -167,17 +167,17 @@ This can be done by adding the ``delivery_whitelist`` option:
167
167
'delivery_whitelist' => array(
168
168
// all email addresses matching this regex will *not* be
169
169
// redirected to dev@example.com
170
- '/@mydomain .com$/',
170
+ '/@specialdomain .com$/',
171
171
172
- // all emails sent to admin@specialdomain .com won't be
172
+ // all emails sent to admin@mydomain .com won't be
173
173
// redirected to dev@example.com too
174
- '/^admin@specialdomain .com$/'
174
+ '/^admin@mydomain .com$/',
175
175
),
176
176
));
177
177
178
178
In the above example all email messages will be redirected to ``dev@example.com ``,
179
- except messages sent to the ``admin@specialdomain .com `` address or to any email
180
- address belonging to the domain ``mydomain .com ``, which will be delivered as normal.
179
+ except messages sent to the ``admin@mydomain .com `` address or to any email
180
+ address belonging to the domain ``specialdomain .com ``, which will be delivered as normal.
181
181
182
182
Viewing from the Web Debug Toolbar
183
183
----------------------------------
0 commit comments