Skip to content

Commit 9c2d1d9

Browse files
GrinWayjaviereguiluz
authored andcommitted
[Mailer] Update mailer.rst
1 parent 534c983 commit 9c2d1d9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mailer.rst

+7
Original file line numberDiff line numberDiff line change
@@ -834,6 +834,13 @@ The exceptions related to mailer transports (those which implement
834834
:class:`Symfony\\Component\\Mailer\\Exception\\TransportException`) also provide
835835
this debug information via the ``getDebug()`` method.
836836

837+
But you have to keep in mind that using :class:`Symfony\\Component\\Mailer\\Transport\\TransportInterface`
838+
you can't rely on asynchronous sending emails.
839+
It doesn't use a bus to dispatch :class:`Symfony\\Component\\Mailer\\Messenger\\SendEmailMessage`.
840+
841+
Use :class:`Symfony\\Component\\Mailer\\MailerInterface` if you want to have an opportunity
842+
to send emails asynchronously.
843+
837844
.. _mailer-twig:
838845

839846
Twig: HTML & CSS

0 commit comments

Comments
 (0)