Skip to content
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
12 changes: 12 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,18 @@ disable asynchronous delivery.
The :method:`Symfony\\Component\\Mailer\\Transport\\Smtp\\SmtpTransport::stop`
method was made public in Symfony 6.1.

Bus transport can also be selected by
adding an ``X-Bus-Transport`` header (which will remove automatically from
the final message)::

// Use the bus transport "app.another_bus":
$email->getHeaders()->addTextHeader('X-Bus-Transport', 'app.another_bus');
$mailer->send($email);

.. versionadded:: 6.2

The ``X-Bus-Transport`` header support was introduced in Symfony 6.2.

Adding Tags and Metadata to Emails
----------------------------------

Expand Down