Skip to content

Commit 2b5a917

Browse files
committed
estored the Address::fromString() example
1 parent d34f541 commit 2b5a917

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mailer.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ both strings or address objects::
151151
// (email clients will display the name)
152152
->from(new NamedAddress('[email protected]', 'Fabien'))
153153

154+
// defining the email address and name as a string
155+
// (the format must match: 'Name <[email protected]>')
156+
->from(Address::fromString('Fabien Potencier <[email protected]>'))
157+
154158
// ...
155159
;
156160

0 commit comments

Comments
 (0)