Skip to content

Commit d52bca4

Browse files
committed
[Mailer] Round Robin now selectes the first transport randomly
1 parent 939ae85 commit d52bca4

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)