Skip to content

Commit f79867f

Browse files
committed
minor #20535 [Mailer] Add retry_period option for email transport (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
2 parents c8c2597 + 6d16cd8 commit f79867f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

mailer.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,17 @@ The failover-transport starts using the first transport and if it fails, it
331331
will retry the same delivery with the next transports until one of them succeeds
332332
(or until all of them fail).
333333

334+
By default, the delivery will be retried 60 seconds after previous sending failed.
335+
You can change the retry period by setting the ``retry_period`` option in the DSN:
336+
337+
.. code-block:: env
338+
339+
MAILER_DSN="failover(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"
340+
341+
.. versionadded:: 7.3
342+
343+
The ``retry_period`` option was introduced in Symfony 7.3.
344+
334345
Load Balancing
335346
~~~~~~~~~~~~~~
336347

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

365+
By default, the delivery will be retried 60 seconds after previous sending failed.
366+
You can change the retry period by setting the ``retry_period`` option in the DSN:
367+
368+
.. code-block:: env
369+
370+
MAILER_DSN="roundrobin(postmark+api://ID@default sendgrid+smtp://KEY@default)?retry_period=15"
371+
372+
.. versionadded:: 7.3
373+
374+
The ``retry_period`` option was introduced in Symfony 7.3.
375+
354376
TLS Peer Verification
355377
~~~~~~~~~~~~~~~~~~~~~
356378

0 commit comments

Comments
 (0)