Skip to content

Commit 43be2db

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Mailer] Mention that emails are async when using Messenger
2 parents 6384ea5 + 982472a commit 43be2db

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
@@ -431,9 +431,12 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
431431
}
432432
}
433433

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

438441
Email Addresses
439442
~~~~~~~~~~~~~~~

messenger.rst

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

404404
This guarantees the entity contains fresh data.
405405

406+
.. _messenger-handling-messages-synchronously:
407+
406408
Handling Messages Synchronously
407409
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
408410

0 commit comments

Comments
 (0)