@@ -140,11 +140,11 @@ by adding the ``delivery_whitelist`` option:
140
140
delivery_whitelist :
141
141
# all email addresses matching this regex will *not* be
142
142
143
- - " /@specialdomain.com$/"
143
+ - " /@specialdomain\ . com$/"
144
144
145
145
# all emails sent to [email protected] won't
146
146
# be redirected to [email protected] too
147
-
147
+ - " /^admin@mydomain\ . com$/"
148
148
149
149
.. code-block :: xml
150
150
@@ -156,10 +156,10 @@ by adding the ``delivery_whitelist`` option:
156
156
157
157
<swiftmailer : config delivery-address =" [email protected] " >
158
158
<!-- all email addresses matching this regex will *not* be redirected to [email protected] -->
159
- <swiftmailer : delivery-whitelist-pattern >/@specialdomain.com$/</swiftmailer : delivery-whitelist-pattern >
159
+ <swiftmailer : delivery-whitelist-pattern >/@specialdomain\ .com$/</swiftmailer : delivery-whitelist-pattern >
160
160
161
161
<!-- all emails sent to [email protected] won't be redirected to [email protected] too -->
162
- <swiftmailer : delivery-whitelist-pattern >/^[email protected] $/</swiftmailer : delivery-whitelist-pattern >
162
+ <swiftmailer : delivery-whitelist-pattern >/^admin@mydomain\ .com$/</swiftmailer : delivery-whitelist-pattern >
163
163
</swiftmailer : config >
164
164
165
165
.. code-block :: php
@@ -170,11 +170,11 @@ by adding the ``delivery_whitelist`` option:
170
170
'delivery_whitelist' => array(
171
171
// all email addresses matching this regex will *not* be
172
172
// redirected to [email protected]
173
- '/@specialdomain.com$/',
173
+ '/@specialdomain\ .com$/',
174
174
175
175
// all emails sent to [email protected] won't be
176
176
// redirected to [email protected] too
177
-
177
+ '/^admin@mydomain\ .com$/',
178
178
),
179
179
));
180
180
0 commit comments