use null://null for MAILER_DSN by default

This commit is contained in:
Kevin Bond
2022-04-01 13:04:00 -04:00
parent 74d71eae9d
commit e58d3d784d
4 changed files with 1 additions and 41 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "MAILER_DSN=smtp://localhost"
"#1": "MAILER_DSN=null://null"
},
"docker-compose": {
"docker-compose.override.yml": {
@@ -1,8 +0,0 @@
framework:
mailer:
dsn: '%env(MAILER_DSN)%'
when@test:
framework:
mailer:
dsn: null://null
-18
View File
@@ -1,18 +0,0 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"#1": "MAILER_DSN=smtp://localhost"
},
"docker-compose": {
"docker-compose.override.yml": {
"services": [
"mailer:",
" image: schickling/mailcatcher",
" ports: [1025, 1080]"
]
}
},
"aliases": ["mailer", "mail"]
}
-14
View File
@@ -1,14 +0,0 @@
* You're ready to send emails.
* If you want to send emails via a supported email provider, install
the corresponding bridge.
For instance, <info>composer require mailgun-mailer</> for Mailgun.
* If you want to send emails asynchronously:
1. Install the messenger component by running <info>composer require messenger</>;
2. Add <info>'Symfony\Component\Mailer\Messenger\SendEmailMessage': amqp</> to the
<info>config/packages/messenger.yaml</> file under <info>framework.messenger.routing</>
and replace <info>amqp</> with your transport name of choice.
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/mailer.html</>