Skip to content

Commit 6f03863

Browse files
committed
minor #16589 [Mailer] Update mailer.rst (mark2016)
This PR was submitted for the 6.0 branch but it was squashed and merged into the 5.4 branch instead. Discussion ---------- [Mailer] Update mailer.rst Added a Tip to clarify that no async emails will be sent unless consumed by a worker. <!-- 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 `6.x` for features of unreleased versions). --> Commits ------- 7db951d [Mailer] Update mailer.rst
2 parents c58d741 + 7db951d commit 6f03863

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

mailer.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,17 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
368368

369369
That's it! The message will be sent via the transport you configured.
370370

371+
.. tip::
372+
373+
If the transport is configured to send emails asynchronously, then no email will
374+
be sent until a worker consumes it. To send queued emails, run console commands as
375+
specified in :doc:`Consuming Messages (Running the Worker) <messenger-worker>`.
376+
Also ensure the PHP timezone in php.ini is set correctly for your region for both
377+
the CLI php.ini and webserver php.ini, this ensures the timestamp that the worker
378+
sees aligns to the timestamp recorded on the email in the message queue. (Sometimes
379+
the CLI and webserver will read different php.ini files, depending on environment
380+
setup).
381+
371382
Email Addresses
372383
~~~~~~~~~~~~~~~
373384

0 commit comments

Comments
 (0)