You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #13682 Show with an example how to add a custom port to the MAILER_DSN (dilantha)
This PR was submitted for the 5.0 branch but it was merged into the 4.4 branch instead.
Discussion
----------
Show with an example how to add a custom port to the MAILER_DSN
Commits
-------
05e2eb2 Show with an example how to add a custom smtp port
Copy file name to clipboardExpand all lines: mailer.rst
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,12 @@ can deliver emails over ``smtp`` by configuring your ``.env`` file:
26
26
.. code-block:: bash
27
27
28
28
# .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.
0 commit comments