Skip to content

Commit fb7df00

Browse files
committed
Tweaks
1 parent cdbb7b7 commit fb7df00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ both strings or address objects::
274274
:class:`Symfony\\Component\\Mailer\\Event\\MessageEvent` event to set the
275275
same ``From`` email to all messages.
276276

277-
Multiple addresses can be set with ``addTo()``, ``addCc()``, or ``addBcc()``::
277+
Use ``addTo()``, ``addCc()``, or ``addBcc()`` methods to add more addresses::
278278

279279
$email = (new Email())
280280
->to('foo@example.com')
@@ -290,7 +290,7 @@ Alternatively, you can pass multiple addresses to each method::
290290
$toAddresses = ['foo@example.com', new Address('bar@example.com')];
291291

292292
$email = (new Email())
293-
->to(...$toAddresses) // use the splat operator if you have an array
293+
->to(...$toAddresses)
294294
->cc('cc1@example.com', 'cc2@example.com')
295295

296296
// ...

0 commit comments

Comments
 (0)