Skip to content

Commit

Permalink
[Mailer] Add retry_period option for email transport
Browse files Browse the repository at this point in the history
  • Loading branch information
alamirault committed Jan 6, 2025
1 parent 2ccc964 commit 6d16cd8
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 6d16cd8

Please # to comment.