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 @@ -127,7 +127,6 @@ both strings or address objects::
127127
128128 // ...
129129 use Symfony\Component\Mime\Address;
130- use Symfony\Component\Mime\NamedAddress;
131130
132131 $email = (new Email())
133132 // email address as a simple string
@@ -138,7 +137,7 @@ both strings or address objects::
138137
139138 // email address as an object (email clients will display the name
140139 // instead of the email address)
141- ->from(new NamedAddress ('fabien@example.com', 'Fabien'))
140+ ->from(new Address ('fabien@example.com', 'Fabien'))
142141
143142 // ...
144143 ;
@@ -301,7 +300,7 @@ for Twig templates::
301300
302301 $email = (new TemplatedEmail())
303302 ->from('fabien@example.com')
304- ->to(new NamedAddress ('ryan@example.com', 'Ryan'))
303+ ->to(new Address ('ryan@example.com', 'Ryan'))
305304 ->subject('Thanks for signing up!')
306305
307306 // path of the Twig template to render
You can’t perform that action at this time.
0 commit comments