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 @@ -144,7 +144,7 @@ both strings or address objects::
144
144
145
145
// defining the email address and name as an object
146
146
// (email clients will display the name)
147
- ->from(new Address ('fabien@example.com', 'Fabien'))
147
+ ->from(new NamedAddress ('fabien@example.com', 'Fabien'))
148
148
149
149
// defining the email address and name as a string
150
150
// (the format must match: 'Name <email@example.com>')
@@ -296,7 +296,7 @@ for Twig templates::
296
296
297
297
$email = (new TemplatedEmail())
298
298
->from('fabien@example.com')
299
- ->to(new Address('ryan@example.com', 'Ryan' ))
299
+ ->to(new Address('ryan@example.com'))
300
300
->subject('Thanks for signing up!')
301
301
302
302
// path of the Twig template to render
You can’t perform that action at this time.
0 commit comments