Skip to content

[Mailer] Round Robin now selects the first transport randomly #13123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions components/mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,14 @@ A round-robin transport is configured with two or more transports and the

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

The mailer will start 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).
The mailer will start using a randomly selected 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).

.. versionadded:: 5.1

The random selection of the first transport was introduced in Symfony 5.1.
In previous Symfony versions the first transport was always selected first.

TLS Peer Verification
---------------------
Expand Down