File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,6 @@ both strings or address objects::
132132
133133 // ...
134134 use Symfony\Component\Mime\Address;
135- use Symfony\Component\Mime\NamedAddress;
136135
137136 $email = (new Email())
138137 // email address as a simple string
@@ -143,7 +142,7 @@ both strings or address objects::
143142
144143 // email address as an object (email clients will display the name
145144 // instead of the email address)
146- ->from(new NamedAddress ('fabien@example.com', 'Fabien'))
145+ ->from(new Address ('fabien@example.com', 'Fabien'))
147146
148147 // ...
149148 ;
@@ -306,7 +305,7 @@ for Twig templates::
306305
307306 $email = (new TemplatedEmail())
308307 ->from('fabien@example.com')
309- ->to(new NamedAddress ('ryan@example.com', 'Ryan'))
308+ ->to(new Address ('ryan@example.com', 'Ryan'))
310309 ->subject('Thanks for signing up!')
311310
312311 // path of the Twig template to render
You can’t perform that action at this time.
0 commit comments