Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 20ad31d

Browse filesBrowse files
committed
[#5995] Update comments in the code
1 parent 5f35f07 commit 20ad31d
Copy full SHA for 20ad31d

File tree

Expand file treeCollapse file tree

1 file changed

+9
-16
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-16
lines changed

‎cookbook/email/dev_environment.rst

Copy file name to clipboardExpand all lines: cookbook/email/dev_environment.rst
+9-16Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,9 @@ by adding the ``delivery_whitelist`` option:
141141
swiftmailer:
142142
delivery_address: dev@example.com
143143
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
146146
- '/@specialdomain\.com$/'
147-
148-
# all emails sent to admin@mydomain.com won't
149-
# be redirected to dev@example.com too
150147
- '/^admin@mydomain\.com$/'
151148
152149
.. code-block:: xml
@@ -162,10 +159,9 @@ by adding the ``delivery_whitelist`` option:
162159
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">
163160
164161
<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 -->
166164
<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 -->
169165
<swiftmailer:delivery-whitelist-pattern>/^admin@mydomain\.com$/</swiftmailer:delivery-whitelist-pattern>
170166
</swiftmailer:config>
171167
</container>
@@ -176,19 +172,16 @@ by adding the ``delivery_whitelist`` option:
176172
$container->loadFromExtension('swiftmailer', array(
177173
'delivery_address' => "dev@example.com",
178174
'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
181177
'/@specialdomain\.com$/',
182-
183-
// all emails sent to admin@mydomain.com won't be
184-
// redirected to dev@example.com too
185178
'/^admin@mydomain\.com$/',
186179
),
187180
));
188181
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.
192185

193186
Viewing from the Web Debug Toolbar
194187
----------------------------------

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.