Skip to content

Commit 4980d47

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Update example to use Address format
2 parents e6a5738 + f217868 commit 4980d47

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mailer.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,7 @@ and headers.
494494
mailer:
495495
envelope:
496496
sender: 'fabien@example.com'
497+
# sender: 'Fabien <fabien@example.com>' (use this to add a display name)
497498
recipients: ['foo@example.com', 'bar@example.com']
498499
headers:
499500
From: 'Fabien <fabien@example.com>'
@@ -516,6 +517,8 @@ and headers.
516517
<framework:mailer>
517518
<framework:envelope>
518519
<framework:sender>fabien@example.com</framework:sender>
520+
<!-- use this to add a display name:
521+
<framework:sender>Fabien &lt;fabien@example.com&gt;</framework:sender> -->
519522
<framework:recipients>foo@example.com</framework:recipients>
520523
<framework:recipients>bar@example.com</framework:recipients>
521524
</framework:envelope>
@@ -536,6 +539,7 @@ and headers.
536539
$mailer
537540
->envelope()
538541
->sender('fabien@example.com')
542+
// ->sender('Fabien <fabien@example.com>') (use this to add a display name)
539543
->recipients(['foo@example.com', 'bar@example.com'])
540544
;
541545

0 commit comments

Comments
 (0)