File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1333,6 +1333,18 @@ disable asynchronous delivery.
1333
1333
The :method: `Symfony\\ Component\\ Mailer\\ Transport\\ Smtp\\ SmtpTransport::stop `
1334
1334
method was made public in Symfony 6.1.
1335
1335
1336
+ Bus transport can also be selected by
1337
+ adding an ``X-Bus-Transport `` header (which will remove automatically from
1338
+ the final message)::
1339
+
1340
+ // Use the bus transport "app.another_bus":
1341
+ $email->getHeaders()->addTextHeader('X-Bus-Transport', 'app.another_bus');
1342
+ $mailer->send($email);
1343
+
1344
+ .. versionadded :: 6.2
1345
+
1346
+ The ``X-Bus-Transport `` header support was introduced in Symfony 6.2.
1347
+
1336
1348
Adding Tags and Metadata to Emails
1337
1349
----------------------------------
1338
1350
You can’t perform that action at this time.
0 commit comments