Skip to content

Commit 135751f

Browse files
committed
minor symfony#13786 Update mailer.rst (abdounikarim)
This PR was merged into the 4.4 branch. Discussion ---------- Update mailer.rst Hello, I just add an alternative to use a configuration in test for Mailer. Commits ------- 60a26bb Update mailer.rst
2 parents 42740dd + 60a26bb commit 135751f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

mailer.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -994,6 +994,14 @@ environment:
994994
],
995995
]);
996996
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+
9971005
.. note::
9981006

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

0 commit comments

Comments
 (0)