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::
127
127
128
128
// ...
129
129
use Symfony\Component\Mime\Address;
130
- use Symfony\Component\Mime\NamedAddress;
131
130
132
131
$email = (new Email())
133
132
// email address as a simple string
@@ -138,7 +137,7 @@ both strings or address objects::
138
137
139
138
// email address as an object (email clients will display the name
140
139
// instead of the email address)
141
- ->from(new NamedAddress ('fabien@example.com', 'Fabien'))
140
+ ->from(new Address ('fabien@example.com', 'Fabien'))
142
141
143
142
// ...
144
143
;
@@ -301,7 +300,7 @@ for Twig templates::
301
300
302
301
$email = (new TemplatedEmail())
303
302
->from('fabien@example.com')
304
- ->to(new NamedAddress ('ryan@example.com', 'Ryan'))
303
+ ->to(new Address ('ryan@example.com', 'Ryan'))
305
304
->subject('Thanks for signing up!')
306
305
307
306
// path of the Twig template to render
You can’t perform that action at this time.
0 commit comments