Skip to content

[Mailer] Update mailer.rst #16589

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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) <messenger-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
~~~~~~~~~~~~~~~

Expand Down