Skip to content

Commit f952d0f

Browse files
committed
Merge branch '4.4'
* 4.4: Readded a NamedAddress example Remove Address's argument
2 parents 12c6b20 + 21c0088 commit f952d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mailer.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ both strings or address objects::
144144

145145
// defining the email address and name as an object
146146
// (email clients will display the name)
147-
->from(new Address('[email protected]', 'Fabien'))
147+
->from(new NamedAddress('[email protected]', 'Fabien'))
148148

149149
// defining the email address and name as a string
150150
// (the format must match: 'Name <[email protected]>')
@@ -296,7 +296,7 @@ for Twig templates::
296296

297297
$email = (new TemplatedEmail())
298298
299-
->to(new Address('[email protected]', 'Ryan'))
299+
->to(new Address('[email protected]'))
300300
->subject('Thanks for signing up!')
301301

302302
// path of the Twig template to render

0 commit comments

Comments
 (0)