Skip to content

Commit 8779377

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: [Mailer] ping_threshold for ses+smtp
2 parents 504c701 + 8a7b61c commit 8779377

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

mailer.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,17 @@ party provider:
166166
For example, the DSN ``ses+smtp://ABC1234:abc+12/345@default`` should be
167167
configured as ``ses+smtp://ABC1234:abc%2B12%2F345@default``
168168

169+
.. caution::
170+
171+
If you want to use ``ses+smtp`` transport together with :doc:`Messenger </messenger>`
172+
to :ref:`send messages in background <mailer-sending-messages-async>`,
173+
you need to add the ``ping_threshold`` parameter to your ``MAILER_DSN`` with
174+
a value lower than ``10``: ``ses+smtp://USERNAME:PASSWORD@default?ping_threshold=9``
175+
176+
.. versionadded:: 5.4
177+
178+
The ``ping_threshold`` option for ``ses-smtp`` was introduced in Symfony 5.4.
179+
169180
.. note::
170181

171182
When using SMTP, the default timeout for sending a message before throwing an
@@ -1078,6 +1089,8 @@ the final email)::
10781089
$email->getHeaders()->addTextHeader('X-Transport', 'alternative');
10791090
$mailer->send($email);
10801091

1092+
.. _mailer-sending-messages-async:
1093+
10811094
Sending Messages Async
10821095
----------------------
10831096

0 commit comments

Comments
 (0)