File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ both strings or address objects::
142
142
143
143
// defining the email address and name as an object
144
144
// (email clients will display the name)
145
- ->from(new Address ('fabien@example.com', 'Fabien'))
145
+ ->from(new NamedAddress ('fabien@example.com', 'Fabien'))
146
146
147
147
// defining the email address and name as a string
148
148
// (the format must match: 'Name <email@example.com>')
@@ -298,7 +298,7 @@ for Twig templates::
298
298
299
299
$email = (new TemplatedEmail())
300
300
->from('fabien@example.com')
301
- ->to(new Address('ryan@example.com', 'Ryan' ))
301
+ ->to(new Address('ryan@example.com'))
302
302
->subject('Thanks for signing up!')
303
303
304
304
// path of the Twig template to render
You can’t perform that action at this time.
0 commit comments