Skip to content

Commit 38f51e1

Browse files
committed
minor #20164 [Mailer] Update mailer.rst (GrinWay)
This PR was submitted for the 7.1 branch but it was squashed and merged into the 6.4 branch instead. Discussion ---------- [Mailer] Update mailer.rst This piece of addition information will solve the problem of misunderstanding: Why my emails can't be processed asynchronously. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `7.x` for features of unreleased versions). --> Commits ------- 9c2d1d9 [Mailer] Update mailer.rst
2 parents 534c983 + 9c2d1d9 commit 38f51e1

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)