Skip to content

Commit 05e2eb2

Browse files
dilanthajaviereguiluz
authored andcommitted
Show with an example how to add a custom smtp port
1 parent d591d2f commit 05e2eb2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mailer.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,12 @@ can deliver emails over ``smtp`` by configuring your ``.env`` file:
2626
.. code-block:: bash
2727
2828
# .env
29-
MAILER_DSN=smtp://user:pass@smtp.example.com
29+
MAILER_DSN=smtp://user:pass@smtp.example.com:port
30+
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
3035

3136
.. warning::
3237

0 commit comments

Comments
 (0)