Skip to content

Commit 0174794

Browse files
committed
Merge branch '4.4'
* 4.4: [Mailer][Mime] Remove NamedAddress
2 parents c4ff918 + 581a296 commit 0174794

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mailer.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)