Skip to content

Commit 644619a

Browse files
authored
Update mailer.rst
Added note that the async workers need CLI and website timezones to be the same
1 parent b3c6575 commit 644619a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

mailer.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,13 @@ That's it! The message will be sent via the transport you configured.
314314
.. tip::
315315

316316
If the transport is configured to send emails asynchronously, then no email will
317-
be sent until a worker consumes it. To send queued emails run console commands as
317+
be sent until a worker consumes it. To send queued emails, run console commands as
318318
specified in :doc:`Consuming Messages (Running the Worker) <messenger-worker>`.
319-
Also ensure the PHP timezone in php.ini is set correctly for your region.
319+
Also ensure the PHP timezone in php.ini is set correctly for your region for both
320+
the CLI php.ini and webserver php.ini, this ensures the timestamp that the worker
321+
sees aligns to the timestamp recorded on the email in the message queue. (Sometimes
322+
the CLI and webserver will read different php.ini files, depending on environment
323+
setup).
320324

321325
Email Addresses
322326
~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)