Skip to content

Commit 2a4427b

Browse files
Update mailer.rst
Adding the word "array" cause I searched for it, and since I didn't find it, opened this (bogus) issue: symfony/symfony#37657 Also added `addCc()` explicitly, since I also searched for this ;-)
1 parent ef5dd0b commit 2a4427b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

mailer.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,17 +163,18 @@ both strings or address objects::
163163
:class:`Symfony\\Component\\Mailer\\Event\\MessageEvent` event to set the
164164
same ``From`` email to all messages.
165165

166-
Multiple addresses are defined with the ``addXXX()`` methods::
166+
Multiple addresses are defined with ``addTo()`` and ``addCc()``::
167167

168168
$email = (new Email())
169169
170170
->addTo('[email protected]')
171-
->addTo('[email protected]')
171+
172+
->addCc('[email protected]')
172173

173174
// ...
174175
;
175176

176-
Alternatively, you can pass multiple addresses to each method::
177+
Alternatively, you can pass multiple addresses or an array to each method::
177178

178179
$toAddresses = ['[email protected]', new Address('[email protected]')];
179180

0 commit comments

Comments
 (0)