File tree 1 file changed +2
-3
lines changed
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::
132
132
133
133
// ...
134
134
use Symfony\Component\Mime\Address;
135
- use Symfony\Component\Mime\NamedAddress;
136
135
137
136
$email = (new Email())
138
137
// email address as a simple string
@@ -143,7 +142,7 @@ both strings or address objects::
143
142
144
143
// email address as an object (email clients will display the name
145
144
// instead of the email address)
146
- ->from(new NamedAddress ('fabien@example.com', 'Fabien'))
145
+ ->from(new Address ('fabien@example.com', 'Fabien'))
147
146
148
147
// ...
149
148
;
@@ -306,7 +305,7 @@ for Twig templates::
306
305
307
306
$email = (new TemplatedEmail())
308
307
->from('fabien@example.com')
309
- ->to(new NamedAddress ('ryan@example.com', 'Ryan'))
308
+ ->to(new Address ('ryan@example.com', 'Ryan'))
310
309
->subject('Thanks for signing up!')
311
310
312
311
// path of the Twig template to render
You can’t perform that action at this time.
0 commit comments