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::
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
You can’t perform that action at this time.
0 commit comments