Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2b5a917

Browse filesBrowse files
committed
estored the Address::fromString() example
1 parent d34f541 commit 2b5a917
Copy full SHA for 2b5a917

File tree

Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-0
lines changed

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+4Lines 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('fabien@example.com', 'Fabien'))
153153

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.