Skip to content

Commit 16907ed

Browse files
TerjeBrweaverryan
authored andcommitted
Xml changes and line-break changes
1 parent 747199c commit 16907ed

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cookbook/email/dev_environment.rst

+13-13
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ Sending to a Specified Address but with Exceptions
123123
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
124124

125125
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:
130130

131131
.. configuration-block::
132132

@@ -148,16 +148,16 @@ This can be done by adding the ``delivery_whitelist`` option:
148148
149149
<!-- app/config/config_dev.xml -->
150150
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">
155154
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>
161161
162162
.. code-block:: php
163163

0 commit comments

Comments
 (0)