From 05c69686346edb8e803b264aa2d991a10deb69b5 Mon Sep 17 00:00:00 2001 From: Guillaume MOREL Date: Mon, 21 Dec 2020 12:21:30 +0100 Subject: [PATCH] [Mailer] Add feature mailer:send-email Linked to https://github.com/symfony/symfony/pull/39173 --- mailer.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/mailer.rst b/mailer.rst index 60575fed9e9..940931bc329 100644 --- a/mailer.rst +++ b/mailer.rst @@ -190,6 +190,26 @@ party provider: Note that the protocol is *always* HTTPs and cannot be changed. +Checking your configuration +~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +If you have any doubt on your configuration. Or if want to make sure your mail supplier is still working. +You can do this with the ``mailer:send-email`` command: + +.. code-block:: terminal + + $ php bin/console mailer:send-email from=a@symfony.com to=b@symfony.com --subject=Test --body=body + + # No subject/body to send simple test mail + $ php bin/console mailer:send-email from=a@symfony.com to=b@symfony.com + +The command can also send body from file using ``--body-source`` option: + +.. code-block:: terminal + + $ php bin/console mailer:send-email from=a@symfony.com to=b@symfony.com --body-source=file --body=/path/to/file + + High Availability ~~~~~~~~~~~~~~~~~