Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 38f51e1

Browse filesBrowse 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
Copy full SHA for 38f51e1

File tree

Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-0
lines changed

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+7Lines changed: 7 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.