Skip to content

Commit b39027f

Browse files
Sander De la Marchefabpot
authored andcommitted
Add note about custom port configuration being ignored by specific mailer transport DSN
See symfony/symfony#49768
1 parent 5930f48 commit b39027f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mailer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,17 @@ OhMySMTP ohmysmtp+smtp://API_TOKEN@default n/a
236236
237237
Note that the protocol is *always* HTTPs and cannot be changed.
238238

239+
.. note::
240+
241+
The specific transports, e.g. ``mailgun+smtp`` are designed to work without any manual configuration.
242+
Changing the port by appending it to your DSN is not supported for any of these ``<provider>+smtp` transports.
243+
If you need to change the port, use the ``smtp`` transport instead, like so:
244+
245+
.. code-block:: env
246+
247+
# .env
248+
MAILER_DSN=smtp://KEY:[email protected]:25
249+
239250
High Availability
240251
~~~~~~~~~~~~~~~~~
241252

0 commit comments

Comments
 (0)