diff --git a/mailer.rst b/mailer.rst index 24eea58ab23..4567b4ac0dc 100644 --- a/mailer.rst +++ b/mailer.rst @@ -157,6 +157,15 @@ Multiple addresses are defined with the ``addXXX()`` methods:: // ... ; +An ``Address`` can be created from a single string:: + + $email = (new Email()) + ->from(Address::fromString('Fabien ')) + + // ... + ; + + Alternatively, you can pass multiple addresses to each method:: $toAddresses = ['foo@example.com', new Address('bar@example.com')];