File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1407,6 +1407,25 @@ Here's an example of making one available to download::
14071407Development & Debugging
14081408-----------------------
14091409
1410+ Sending Test Emails
1411+ ~~~~~~~~~~~~~~~~~~~
1412+
1413+ Symfony provides a command to send emails, which is useful during development
1414+ to test if sending emails works correctly:
1415+
1416+ .. code-block :: terminal
1417+
1418+ # the only mandatory argument is the recipient address
1419+ # (check the command help to learn about its options)
1420+ $ php bin/console mailer:test someone@example.com
1421+
1422+ This command bypasses the :doc: `Messenger bus </messenger >`, if configured, to
1423+ ease testing emails even when the Messenger consumer is not running.
1424+
1425+ .. versionadded :: 6.2
1426+
1427+ The ``mailer:test `` command was introduced in Symfony 6.2.
1428+
14101429Disabling Delivery
14111430~~~~~~~~~~~~~~~~~~
14121431
You can’t perform that action at this time.
0 commit comments