Skip to content

Commit 55c38a6

Browse files
javiereguiluzxabbuh
authored andcommitted
Removed any mention of the deprecated delivery_address option
1 parent ea508f9 commit 55c38a6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

email/dev_environment.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ Sending to a Specified Address(es)
5858

5959
You can also choose to have all email sent to a specific address or a list of addresses, instead
6060
of the address actually specified when sending the message. This can be done
61-
via the ``delivery_address`` or ``delivery_addresses`` option:
61+
via the ``delivery_addresses`` option:
6262

6363
.. configuration-block::
6464

6565
.. code-block:: yaml
6666
6767
# app/config/config_dev.yml
6868
swiftmailer:
69-
delivery_address: 'dev@example.com'
69+
delivery_addresses: ['dev@example.com']
7070
7171
.. code-block:: xml
7272
@@ -78,14 +78,14 @@ via the ``delivery_address`` or ``delivery_addresses`` option:
7878
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
7979
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">
8080
81-
<swiftmailer:config delivery-address="dev@example.com" />
81+
<swiftmailer:config delivery-addresses="dev@example.com" />
8282
</container>
8383
8484
.. code-block:: php
8585
8686
// app/config/config_dev.php
8787
$container->loadFromExtension('swiftmailer', array(
88-
'delivery_address' => "dev@example.com",
88+
'delivery_addresses' => array("dev@example.com"),
8989
));
9090
9191
Now, suppose you're sending an email to ``recipient@example.com``.
@@ -139,7 +139,7 @@ by adding the ``delivery_whitelist`` option:
139139
140140
# app/config/config_dev.yml
141141
swiftmailer:
142-
delivery_address: dev@example.com
142+
delivery_addresses: ['dev@example.com']
143143
delivery_whitelist:
144144
# all email addresses matching these regexes will be delivered
145145
# like normal, as well as being sent to dev@example.com
@@ -158,7 +158,7 @@ by adding the ``delivery_whitelist`` option:
158158
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
159159
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd">
160160
161-
<swiftmailer:config delivery-address="dev@example.com">
161+
<swiftmailer:config delivery-addresses="dev@example.com">
162162
<!-- all email addresses matching these regexes will be delivered
163163
like normal, as well as being sent to dev@example.com -->
164164
<swiftmailer:delivery-whitelist-pattern>/@specialdomain\.com$/</swiftmailer:delivery-whitelist-pattern>
@@ -170,7 +170,7 @@ by adding the ``delivery_whitelist`` option:
170170
171171
// app/config/config_dev.php
172172
$container->loadFromExtension('swiftmailer', array(
173-
'delivery_address' => "dev@example.com",
173+
'delivery_addresses' => array("dev@example.com"),
174174
'delivery_whitelist' => array(
175175
// all email addresses matching these regexes will be delivered
176176
// like normal, as well as being sent to dev@example.com

0 commit comments

Comments
 (0)