Skip to content

Commit 982472a

Browse files
committed
minor #18848 [Mailer][Messenger] Mention that emails are async when using Messenger (javiereguiluz)
This PR was submitted for the 6.4 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Mailer][Messenger] Mention that emails are async when using Messenger Fixes #17072. Commits ------- 585b8a3 [Mailer] Mention that emails are async when using Messenger
2 parents 403b41c + 585b8a3 commit 982472a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

mailer.rst

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,12 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
398398
}
399399
}
400400

401-
That's it! The message will be sent via the transport you configured. If the
402-
transport is configured to :ref:`send emails asynchronously <mailer-sending-messages-async>`,
403-
the message won't be actually sent until :doc:`a worker consumes it <messenger-worker>`.
401+
That's it! The message will be sent immediately via the transport you configured.
402+
If you prefer to send emails asynchronously to improve performance, read the
403+
:ref:`Sending Messages Async <mailer-sending-messages-async>` section. Also, if
404+
your application has the :doc:`Messenger component </messenger>` installed, all
405+
emails will be sent asynchronously by default
406+
(but :ref:`you can change that <messenger-handling-messages-synchronously>`).
404407

405408
Email Addresses
406409
~~~~~~~~~~~~~~~

messenger.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,8 @@ Then, in your handler, you can query for a fresh object::
391391

392392
This guarantees the entity contains fresh data.
393393

394+
.. _messenger-handling-messages-synchronously:
395+
394396
Handling Messages Synchronously
395397
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
396398

0 commit comments

Comments
 (0)