From 7db951de985349970d9bd6f6aa44ce85b6898867 Mon Sep 17 00:00:00 2001 From: mark2016 Date: Fri, 11 Mar 2022 13:03:20 +1100 Subject: [PATCH] [Mailer] Update mailer.rst --- mailer.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/mailer.rst b/mailer.rst index e109c581adc..cca774a7bf5 100644 --- a/mailer.rst +++ b/mailer.rst @@ -368,6 +368,17 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object:: That's it! The message will be sent via the transport you configured. +.. tip:: + + If the transport is configured to send emails asynchronously, then no email will + be sent until a worker consumes it. To send queued emails, run console commands as + specified in :doc:`Consuming Messages (Running the Worker) `. + Also ensure the PHP timezone in php.ini is set correctly for your region for both + the CLI php.ini and webserver php.ini, this ensures the timestamp that the worker + sees aligns to the timestamp recorded on the email in the message queue. (Sometimes + the CLI and webserver will read different php.ini files, depending on environment + setup). + Email Addresses ~~~~~~~~~~~~~~~