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

+2-2
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('fabien@example.com', 'Fabien'))
147+
->from(new NamedAddress('fabien@example.com', 'Fabien'))
148148

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

297297
$email = (new TemplatedEmail())
298298
->from('fabien@example.com')
299-
->to(new Address('ryan@example.com', 'Ryan'))
299+
->to(new Address('ryan@example.com'))
300300
->subject('Thanks for signing up!')
301301

302302
// path of the Twig template to render

0 commit comments

Comments
 (0)