Skip to content

Commit 74d71ea

Browse files
committed
[symfony/mailer] add 5.4 recipe with test dsn
1 parent 7d43cf1 commit 74d71ea

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
framework:
2+
mailer:
3+
dsn: '%env(MAILER_DSN)%'
4+
5+
when@test:
6+
framework:
7+
mailer:
8+
dsn: null://null

symfony/mailer/5.4/manifest.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"copy-from-recipe": {
3+
"config/": "%CONFIG_DIR%/"
4+
},
5+
"env": {
6+
"#1": "MAILER_DSN=smtp://localhost"
7+
},
8+
"docker-compose": {
9+
"docker-compose.override.yml": {
10+
"services": [
11+
"mailer:",
12+
" image: schickling/mailcatcher",
13+
" ports: [1025, 1080]"
14+
]
15+
}
16+
},
17+
"aliases": ["mailer", "mail"]
18+
}

symfony/mailer/5.4/post-install.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
* You're ready to send emails.
2+
3+
* If you want to send emails via a supported email provider, install
4+
the corresponding bridge.
5+
For instance, <info>composer require mailgun-mailer</> for Mailgun.
6+
7+
* If you want to send emails asynchronously:
8+
9+
1. Install the messenger component by running <info>composer require messenger</>;
10+
2. Add <info>'Symfony\Component\Mailer\Messenger\SendEmailMessage': amqp</> to the
11+
<info>config/packages/messenger.yaml</> file under <info>framework.messenger.routing</>
12+
and replace <info>amqp</> with your transport name of choice.
13+
14+
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/doc/master/mailer.html</>

0 commit comments

Comments
 (0)