Skip to content

Commit 21c0088

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Readded a NamedAddress example Remove Address's argument
2 parents 361fbab + 2dd3ed4 commit 21c0088

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
@@ -142,7 +142,7 @@ both strings or address objects::
142142

143143
// defining the email address and name as an object
144144
// (email clients will display the name)
145-
->from(new Address('fabien@example.com', 'Fabien'))
145+
->from(new NamedAddress('fabien@example.com', 'Fabien'))
146146

147147
// defining the email address and name as a string
148148
// (the format must match: 'Name <email@example.com>')
@@ -298,7 +298,7 @@ for Twig templates::
298298

299299
$email = (new TemplatedEmail())
300300
->from('fabien@example.com')
301-
->to(new Address('ryan@example.com', 'Ryan'))
301+
->to(new Address('ryan@example.com'))
302302
->subject('Thanks for signing up!')
303303

304304
// path of the Twig template to render

0 commit comments

Comments
 (0)