We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 581a296 commit 36960ebCopy full SHA for 36960eb
mailer.rst
@@ -157,6 +157,15 @@ Multiple addresses are defined with the ``addXXX()`` methods::
157
// ...
158
;
159
160
+An ``Address`` can be created from a single string::
161
+
162
+ $email = (new Email())
163
+ ->from(Address::fromString('Fabien <fabien@example.com>'))
164
165
+ // ...
166
+ ;
167
168
169
Alternatively, you can pass multiple addresses to each method::
170
171
$toAddresses = ['foo@example.com', new Address('bar@example.com')];
0 commit comments