Skip to content

Commit d991ca4

Browse files
committed
Minor reword
1 parent 745463f commit d991ca4

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

mailer.rst

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,14 @@ Transport Setup
2121
---------------
2222

2323
Emails are delivered via a "transport". And without installing anything else, you
24-
can deliver emails over ``smtp`` by configuring your ``.env`` file:
24+
can deliver emails over ``smtp`` by configuring your ``.env`` file (the
25+
``user``, ``pass`` and ``port`` parameters are optional):
2526

2627
.. code-block:: bash
2728
2829
# .env
2930
MAILER_DSN=smtp://user:pass@smtp.example.com:port
3031
31-
The `user`, `pass` and `port` are optional. The port defaults to 25. If you have a custom port like 1025 which MailHog uses then the MAILER_DSN will be like this.
32-
33-
# .env
34-
MAILER_DSN=smtp://localhost:1025
35-
3632
.. warning::
3733

3834
If you are migrating from Swiftmailer (and the Swiftmailer bundle), be
@@ -126,7 +122,7 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
126122
->subject('Time for Symfony Mailer!')
127123
->text('Sending emails is fun again!')
128124
->html('<p>See Twig integration for better HTML integration!</p>');
129-
125+
130126
$mailer->send($email);
131127

132128
// ...

0 commit comments

Comments
 (0)