@@ -58,15 +58,15 @@ Sending to a Specified Address(es)
58
58
59
59
You can also choose to have all email sent to a specific address or a list of addresses, instead
60
60
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:
62
62
63
63
.. configuration-block ::
64
64
65
65
.. code-block :: yaml
66
66
67
67
# app/config/config_dev.yml
68
68
swiftmailer :
69
- delivery_address : ' dev@example.com'
69
+ delivery_addresses : [ 'dev@example.com']
70
70
71
71
.. code-block :: xml
72
72
@@ -78,14 +78,14 @@ via the ``delivery_address`` or ``delivery_addresses`` option:
78
78
xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
79
79
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd" >
80
80
81
- <swiftmailer : config delivery-address =" dev@example.com" />
81
+ <swiftmailer : config delivery-addresses =" dev@example.com" />
82
82
</container >
83
83
84
84
.. code-block :: php
85
85
86
86
// app/config/config_dev.php
87
87
$container->loadFromExtension('swiftmailer', array(
88
- 'delivery_address' => "dev@example.com",
88
+ 'delivery_addresses' => array( "dev@example.com") ,
89
89
));
90
90
91
91
Now, suppose you're sending an email to ``recipient@example.com ``.
@@ -139,7 +139,7 @@ by adding the ``delivery_whitelist`` option:
139
139
140
140
# app/config/config_dev.yml
141
141
swiftmailer :
142
- delivery_address : dev@example.com
142
+ delivery_addresses : [' dev@example.com']
143
143
delivery_whitelist :
144
144
# all email addresses matching these regexes will be delivered
145
145
# like normal, as well as being sent to dev@example.com
@@ -158,7 +158,7 @@ by adding the ``delivery_whitelist`` option:
158
158
xsi : schemaLocation =" http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd
159
159
http://symfony.com/schema/dic/swiftmailer http://symfony.com/schema/dic/swiftmailer/swiftmailer-1.0.xsd" >
160
160
161
- <swiftmailer : config delivery-address =" dev@example.com" >
161
+ <swiftmailer : config delivery-addresses =" dev@example.com" >
162
162
<!-- all email addresses matching these regexes will be delivered
163
163
like normal, as well as being sent to dev@example.com -->
164
164
<swiftmailer : delivery-whitelist-pattern >/@specialdomain\.com$/</swiftmailer : delivery-whitelist-pattern >
@@ -170,7 +170,7 @@ by adding the ``delivery_whitelist`` option:
170
170
171
171
// app/config/config_dev.php
172
172
$container->loadFromExtension('swiftmailer', array(
173
- 'delivery_address ' => "dev@example.com",
173
+ 'delivery_addresses ' => array( "dev@example.com") ,
174
174
'delivery_whitelist' => array(
175
175
// all email addresses matching these regexes will be delivered
176
176
// like normal, as well as being sent to dev@example.com
0 commit comments