Skip to content

Commit 6d3c03a

Browse files
author
Sander De la Marche
committed
Add note about custom port configuration being ignored by specific mailer transport DSN
See symfony/symfony#49768
1 parent 612b244 commit 6d3c03a

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
@@ -228,6 +228,17 @@ MailerSend mailersend+smtp://KEY@default n/a
228228
229229
Note that the protocol is *always* HTTPs and cannot be changed.
230230

231+
.. note::
232+
233+
The specific transports, e.g. ``mailgun+smtp`` are designed to work without any manual configuration.
234+
Changing the port by appending it to your DSN is not supported for any of these ``<provider>+smtp` transports.
235+
If you need to change the port, use the ``smtp`` transport instead, like so:
236+
237+
.. code-block:: env
238+
239+
# .env
240+
MAILER_DSN=smtp://KEY:[email protected]:25
241+
231242
High Availability
232243
~~~~~~~~~~~~~~~~~
233244

0 commit comments

Comments
 (0)