Skip to content

Commit fb57e4e

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: [Mailer] Update mailer.rst
2 parents 1b67e22 + fb7df00 commit fb57e4e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mailer.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,12 +303,13 @@ both strings or address objects::
303303
:class:`Symfony\\Component\\Mailer\\Event\\MessageEvent` event to set the
304304
same ``From`` email to all messages.
305305

306-
Multiple addresses are defined with the ``addXXX()`` methods::
306+
Use ``addTo()``, ``addCc()``, or ``addBcc()`` methods to add more addresses::
307307

308308
$email = (new Email())
309309
->to('foo@example.com')
310310
->addTo('bar@example.com')
311-
->addTo('baz@example.com')
311+
->cc('cc@example.com')
312+
->addCc('cc2@example.com')
312313

313314
// ...
314315
;

0 commit comments

Comments
 (0)