8000 Reword · symfony/symfony-docs@dc961a6 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc961a6

Browse files
committed
Reword
1 parent 135751f commit dc961a6

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

mailer.rst

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -954,9 +954,10 @@ Development & Debugging
954954
Disabling Delivery
955955
~~~~~~~~~~~~~~~~~~
956956

957-
While developing (or testing), you may want to disable delivery of messages entirely.
958-
You can do this by forcing Mailer to use the ``NullTransport`` in only the ``dev``
959-
environment:
957+
While developing (or testing), you may want to disable delivery of messages
958+
entirely. You can do this by using ``null://null`` as the mailer DSN, either in
959+
your :ref:`.env configuration files <configuration-multiple-env-files>` or in
960+
the mailer configuration file (e.g. in the ``dev`` or ``test`` environments):
960961

961962
.. configuration-block::
962963

@@ -994,14 +995,6 @@ environment:
994995
],
995996
]);
996997
997-
You can also disable delivering with an environment variable in your `.env.test` file
998-
(or you can create a `.env.test.local` file for example) :
999-
1000-
.. code-block:: bash
1001-
1002-
# .env.test
1003-
MAILER_DSN=null://null
1004-
1005998
.. note::
1006999

10071000
If you're using Messenger and routing to a transport, the message will *still*

0 commit comments

Comments
 (0)
0