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::
1407
1407
Development & Debugging
1408
1408
-----------------------
1409
1409
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 [email protected]
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
+
1410
1429
Disabling Delivery
1411
1430
~~~~~~~~~~~~~~~~~~
1412
1431
You can’t perform that action at this time.
0 commit comments