Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Mailer] ping_threshold for ses+smtp #15557

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 29, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[Mailer] ping_threshold for ses+smtp
  • Loading branch information
Tyraelqp authored and javiereguiluz committed Jul 29, 2021
commit 7f54a275ff4c42e43983c763bb164355f8a7d74a
13 changes: 13 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,17 @@ party provider:
For example, the DSN ``ses+smtp://ABC1234:abc+12/345@default`` should be
configured as ``ses+smtp://ABC1234:abc%2B12%2F345@default``

.. caution::

If you want to use ``ses+smtp`` transport together with :doc:`Messenger </messenger>`
to :ref:`send messages in background <mailer-sending-messages-async>`,
you need to add ``ping_threshold`` parameter to your ``MAILER_DSN`` with
value lower than ``10``: ``ses+smtp://USERNAME:PASSWORD@default?ping_threshold=9``

.. versionadded:: 5.4

The ``ping_threshold`` option for ``ses-smtp`` was introduced in Symfony 5.4.

.. note::

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

.. _mailer-sending-messages-async:

Sending Messages Async
----------------------

Expand Down