Skip to content

Commit

Permalink
minor #20535 [Mailer] Add retry_period option for email transport (…
Browse files Browse the repository at this point in the history
…alamirault)

This PR was merged into the 7.3 branch.

Discussion
----------

[Mailer] Add `retry_period` option for email transport

Fix #20511

Commits
-------

6d16cd8 [Mailer] Add retry_period option for email transport
  • Loading branch information
javiereguiluz committed Jan 7, 2025
2 parents c8c2597 + 6d16cd8 commit f79867f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,17 @@ The failover-transport starts using the first transport and if it fails, it
will retry the same delivery with the next transports until one of them succeeds
(or until all of them fail).

By default, the delivery will be retried 60 seconds after previous sending failed.
You can change the retry period by setting the ``retry_period`` option in the DSN:

.. code-block:: env
MAILER_DSN="failover(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"
.. versionadded:: 7.3

The ``retry_period`` option was introduced in Symfony 7.3.

Load Balancing
~~~~~~~~~~~~~~

Expand All @@ -351,6 +362,17 @@ As with the failover transport, round-robin retries deliveries until
a transport succeeds (or all fail). In contrast to the failover transport,
it *spreads* the load across all its transports.

By default, the delivery will be retried 60 seconds after previous sending failed.
You can change the retry period by setting the ``retry_period`` option in the DSN:

.. code-block:: env
MAILER_DSN="roundrobin(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"
.. versionadded:: 7.3

The ``retry_period`` option was introduced in Symfony 7.3.

TLS Peer Verification
~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit f79867f

Please # to comment.