8000 [Mailer] Change DSN syntax · symfony/symfony-docs@c836073 · GitHub
[go: up one dir, main page]

Skip to content

Commit c836073

Browse files
author
William JEHANNE
committed
[Mailer] Change DSN syntax
1 parent 9776a37 commit c836073

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/mailer.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ binary. For third-party providers, refers to the following table:
102102
Failover Transport
103103
------------------
104104

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

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

109109
So if the first transport fails, the mailer will attempt to send through the
110110
second transport.
@@ -113,9 +113,9 @@ Round Robin
113113
-----------
114114

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

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

120120
Sending emails asynchronously
121121
-----------------------------

0 commit comments

Comments
 (0)
0