From b39027f3470ee790b39ab42b6d0828e213d15bf1 Mon Sep 17 00:00:00 2001 From: Sander De la Marche Date: Sat, 25 Mar 2023 09:40:33 +0100 Subject: [PATCH] Add note about custom port configuration being ignored by specific mailer transport DSN See https://github.com/symfony/symfony/pull/49768 --- mailer.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mailer.rst b/mailer.rst index 68bcaf297bc..eb1a72ec9c1 100644 --- a/mailer.rst +++ b/mailer.rst @@ -236,6 +236,17 @@ OhMySMTP ohmysmtp+smtp://API_TOKEN@default n/a Note that the protocol is *always* HTTPs and cannot be changed. +.. note:: + + The specific transports, e.g. ``mailgun+smtp`` are designed to work without any manual configuration. + Changing the port by appending it to your DSN is not supported for any of these ``+smtp` transports. + If you need to change the port, use the ``smtp`` transport instead, like so: + + .. code-block:: env + + # .env + MAILER_DSN=smtp://KEY:DOMAIN@smtp.eu.mailgun.org.com:25 + High Availability ~~~~~~~~~~~~~~~~~