Skip to content

Commit 1b5dc32

Browse files
committed
minor #17202 [Mailer] Update example to use Address format (jdelaune)
This PR was merged into the 5.4 branch. Discussion ---------- [Mailer] Update example to use Address format It seems strange to me that the example for the From headers uses the full Address format, whereas the sender envelope does not. I believe it is possible to use it here, so thought I would expand on the example to show how you can set both the display name and email address when configuring the sender envelope globally. Commits ------- 19d9617 Update example to use Address format
2 parents 2900b80 + 19d9617 commit 1b5dc32

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mailer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ and headers.
553553
framework:
554554
mailer:
555555
envelope:
556-
556+
sender: 'Fabien <[email protected]>'
557557
558558
headers:
559559
From: 'Fabien <[email protected]>'
@@ -575,7 +575,7 @@ and headers.
575575
<framework:config>
576576
<framework:mailer>
577577
<framework:envelope>
578-
<framework:sender>[email protected]</framework:sender>
578+
<framework:sender>Fabien &lt;[email protected]&gt;</framework:sender>
579579
<framework:recipients>[email protected]</framework:recipients>
580580
<framework:recipients>[email protected]</framework:recipients>
581581
</framework:envelope>
@@ -595,7 +595,7 @@ and headers.
595595
$mailer = $framework->mailer();
596596
$mailer
597597
->envelope()
598-
->sender('[email protected]')
598+
->sender('Fabien <fabien@example.com>')
599599
600600
;
601601

0 commit comments

Comments
 (0)