8000 Update mailer.rst · githubfromgui/symfony-docs@60a26bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 60a26bb

Browse files
authored
Update mailer.rst
Hello, I just add an alternative to use a configuration in test for Mailer.
1 parent 5bf187e commit 60a26bb

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
@@ -784,6 +784,14 @@ environment:
784784
mailer:
785785
dsn: 'null://null'
786786
787+
You can also disable delivering with an environment variable in your `.env.test` file
788+
(or you can create a `.env.test.local` file for example) :
789+
790+
.. code-block:: bash
791+
792+
# .env.test
793+
MAILER_DSN=null://null
794+
787795
.. note::
788796

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

0 commit comments

Comments
 (0)
0