Skip to content

Commit f217868

Browse files
committed
Tweaks
1 parent 1b5dc32 commit f217868

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

mailer.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,8 @@ and headers.
553553
framework:
554554
mailer:
555555
envelope:
556-
sender: 'Fabien <fabien@example.com>'
556+
sender: 'fabien@example.com'
557+
# sender: 'Fabien <fabien@example.com>' (use this to add a display name)
557558
recipients: ['foo@example.com', 'bar@example.com']
558559
headers:
559560
From: 'Fabien <fabien@example.com>'
@@ -575,7 +576,9 @@ and headers.
575576
<framework:config>
576577
<framework:mailer>
577578
<framework:envelope>
578-
<framework:sender>Fabien &lt;fabien@example.com&gt;</framework:sender>
579+
<framework:sender>fabien@example.com</framework:sender>
580+
<!-- use this to add a display name:
581+
<framework:sender>Fabien &lt;fabien@example.com&gt;</framework:sender> -->
579582
<framework:recipients>foo@example.com</framework:recipients>
580583
<framework:recipients>bar@example.com</framework:recipients>
581584
</framework:envelope>
@@ -595,7 +598,8 @@ and headers.
595598
$mailer = $framework->mailer();
596599
$mailer
597600
->envelope()
598-
->sender('Fabien <fabien@example.com>')
601+
->sender('fabien@example.com')
602+
// ->sender('Fabien <fabien@example.com>') (use this to add a display name)
599603
->recipients(['foo@example.com', 'bar@example.com'])
600604
;
601605

0 commit comments

Comments
 (0)