We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 04dcb31 + 5c1771f commit 38be5a8Copy full SHA for 38be5a8
mailer.rst
@@ -1342,6 +1342,18 @@ disable asynchronous delivery.
1342
The :method:`Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport::stop`
1343
method was made public in Symfony 6.1.
1344
1345
+Bus transport can also be selected by
1346
+adding an ``X-Bus-Transport`` header (which will remove automatically from
1347
+the final message)::
1348
+
1349
+ // Use the bus transport "app.another_bus":
1350
+ $email->getHeaders()->addTextHeader('X-Bus-Transport', 'app.another_bus');
1351
+ $mailer->send($email);
1352
1353
+.. versionadded:: 6.2
1354
1355
+ The ``X-Bus-Transport`` header support was introduced in Symfony 6.2.
1356
1357
Adding Tags and Metadata to Emails
1358
----------------------------------
1359
0 commit comments