Skip to content

Commit 2bac6d6

Browse files
committed
feature #13123 [Mailer] Round Robin now selects the first transport randomly (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- [Mailer] Round Robin now selects the first transport randomly Fixes #13020. Commits ------- d52bca4 [Mailer] Round Robin now selectes the first transport randomly
2 parents 939ae85 + d52bca4 commit 2bac6d6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

components/mailer.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,14 @@ A round-robin transport is configured with two or more transports and the
138138

139139
$dsn = 'roundrobin(postmark+api://ID@default sendgrid+smtp://KEY@default)'
140140

141-
The mailer will start using the first transport and if it fails, it will retry
142-
the same delivery with the next transports until one of them succeeds (or until
143-
all of them fail).
141+
The mailer will start using a randomly selected transport and if it fails, it
142+
will retry the same delivery with the next transports until one of them succeeds
143+
(or until all of them fail).
144+
145+
.. versionadded:: 5.1
146+
147+
The random selection of the first transport was introduced in Symfony 5.1.
148+
In previous Symfony versions the first transport was always selected first.
144149

145150
TLS Peer Verification
146151
---------------------

0 commit comments

Comments
 (0)