From 05e2eb2cfbb54d09d7480bf9b7e318e1650ddf20 Mon Sep 17 00:00:00 2001 From: Dilantha Nanayakkara <450922+dilantha@users.noreply.github.com> Date: Tue, 19 May 2020 22:13:07 +1000 Subject: [PATCH] Show with an example how to add a custom smtp port --- mailer.rst | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mailer.rst b/mailer.rst index e45f2551428..2ec9bf0a67e 100644 --- a/mailer.rst +++ b/mailer.rst @@ -26,7 +26,12 @@ can deliver emails over ``smtp`` by configuring your ``.env`` file: .. code-block:: bash # .env - MAILER_DSN=smtp://user:pass@smtp.example.com + MAILER_DSN=smtp://user:pass@smtp.example.com:port + +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. + + # .env + MAILER_DSN=smtp://localhost:1025 .. warning::