Skip to content

Commit 418426a

Browse files
andyexeterjaviereguiluz
authored andcommitted
Capitalise From and Bcc header names in global mailer configuration
1 parent 9363130 commit 418426a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mailer.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ and headers.
535535
sender: 'fabien@example.com'
536536
recipients: ['foo@example.com', 'bar@example.com']
537537
headers:
538-
from: 'Fabien <fabien@example.com>'
539-
bcc: 'baz@example.com'
538+
From: 'Fabien <fabien@example.com>'
539+
Bcc: 'baz@example.com'
540540
X-Custom-Header: 'foobar'
541541
542542
.. code-block:: xml
@@ -558,8 +558,8 @@ and headers.
558558
<framework:recipients>foo@example.com</framework:recipients>
559559
<framework:recipients>bar@example.com</framework:recipients>
560560
</framework:envelope>
561-
<framework:header name="from">Fabien &lt;fabien@example.com&gt;</framework:header>
562-
<framework:header name="bcc">baz@example.com</framework:header>
561+
<framework:header name="From">Fabien &lt;fabien@example.com&gt;</framework:header>
562+
<framework:header name="Bcc">baz@example.com</framework:header>
563563
<framework:header name="X-Custom-Header">foobar</framework:header>
564564
</framework:mailer>
565565
</framework:config>
@@ -578,8 +578,8 @@ and headers.
578578
->recipients(['foo@example.com', 'bar@example.com'])
579579
;
580580
581-
$mailer->header('from')->value('Fabien <fabien@example.com>');
582-
$mailer->header('bcc')->value('baz@example.com');
581+
$mailer->header('From')->value('Fabien <fabien@example.com>');
582+
$mailer->header('Bcc')->value('baz@example.com');
583583
$mailer->header('X-Custom-Header')->value('foobar');
584584
};
585585

0 commit comments

Comments
 (0)