Skip to content

[Mailer] Change DSN syntax #12299

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
Sep 11, 2019
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
8 changes: 4 additions & 4 deletions components/mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ binary. For third-party providers, refers to the following table:
Failover Transport
------------------

You can create failover transport with the help of `||` operator::
You can create failover transport with the help of `failover()` keyword::

$dsn = 'api://id@postmark || smtp://key@sendgrid';
$dsn = 'failover(api://id@postmark smtp://key@sendgrid)';

So if the first transport fails, the mailer will attempt to send through the
second transport.
Expand All @@ -113,9 +113,9 @@ Round Robin
-----------

If you want to send emails by using multiple transports in a round-robin fashion,
you can use the ``&&`` operator between the transports::
you can use the ``roundrobin()`` keyword with the transports::

$dsn = 'api://id@postmark && smtp://key@sendgrid'
$dsn = 'roundrobin(api://id@postmark smtp://key@sendgrid)'

Sending emails asynchronously
-----------------------------
Expand Down