Skip to content

Update dev_environment.rst #8344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 12, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions email/dev_environment.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ will not be sent when you run tests, but will continue to be sent in the

# app/config/config_test.yml
swiftmailer:
disable_delivery: true
disable_delivery: true

.. code-block:: xml

Expand All @@ -48,7 +48,7 @@ will not be sent when you run tests, but will continue to be sent in the

// app/config/config_test.php
$container->loadFromExtension('swiftmailer', array(
'disable_delivery' => "true",
'disable_delivery' => "true",
));

If you'd also like to disable deliver in the ``dev`` environment, simply
Expand Down Expand Up @@ -80,7 +80,8 @@ via the ``delivery_addresses`` option:
xmlns:swiftmailer="http://symfony.com/schema/dic/swiftmailer"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">
http://symfony.com/schema/dic/swiftmailer
http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">

<swiftmailer:config>
<swiftmailer:delivery-address>dev@example.com</swiftmailer:delivery-address>
Expand Down Expand Up @@ -155,15 +156,14 @@ by adding the ``delivery_whitelist`` option:
.. code-block:: xml

<!-- app/config/config_dev.xml -->

<?xml version="1.0" charset="UTF-8" ?>
<?xml version="1.0" encoding="UTF-8" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:swiftmailer="http://symfony.com/schema/dic/swiftmailer"
xsi:schemaLocation="http://symfony.com/schema/dic/services
http://symfony.com/schema/dic/services/services-1.0.xsd
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">
http://symfony.com/schema/dic/swiftmailer
http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">

<swiftmailer:config>
<!-- all email addresses matching these regexes will be delivered
Expand All @@ -178,7 +178,7 @@ by adding the ``delivery_whitelist`` option:

// app/config/config_dev.php
$container->loadFromExtension('swiftmailer', array(
'delivery_addresses' => array("dev@example.com"),
'delivery_addresses' => array("dev@example.com"),
'delivery_whitelist' => array(
// all email addresses matching these regexes will be delivered
// like normal, as well as being sent to dev@example.com
Expand Down