Skip to content

Commit ed0771b

Browse files
committed
minor #15557 [Mailer] ping_threshold for ses+smtp (Tyraelqp)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- [Mailer] ping_threshold for ses+smtp Docs for symfony/symfony#42219 Commits ------- 7f54a27 [Mailer] ping_threshold for ses+smtp
2 parents f826c3b + 7f54a27 commit ed0771b

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
@@ -174,6 +174,17 @@ party provider:
174174
For example, the DSN ``ses+smtp://ABC1234:abc+12/345@default`` should be
175175
configured as ``ses+smtp://ABC1234:abc%2B12%2F345@default``
176176

177+
.. caution::
178+
179+
If you want to use ``ses+smtp`` transport together with :doc:`Messenger </messenger>`
180+
to :ref:`send messages in background <mailer-sending-messages-async>`,
181+
you need to add ``ping_threshold`` parameter to your ``MAILER_DSN`` with
182+
value lower than ``10``: ``ses+smtp://USERNAME:PASSWORD@default?ping_threshold=9``
183+
184+
.. versionadded:: 5.4
185+
186+
The ``ping_threshold`` option for ``ses-smtp`` was introduced in Symfony 5.4.
187+
177188
.. note::
178189

179190
When using SMTP, the default timeout for sending a message before throwing an
@@ -1112,6 +1123,8 @@ the final email)::
11121123
$email->getHeaders()->addTextHeader('X-Transport', 'alternative');
11131124
$mailer->send($email);
11141125

1126+
.. _mailer-sending-messages-async:
1127+
11151128
Sending Messages Async
11161129
----------------------
11171130

0 commit comments

Comments
 (0)