File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ framework :
2+ mailer :
3+ dsn : ' %env(MAILER_DSN)%'
4+
5+ when@test :
6+ framework :
7+ mailer :
8+ dsn : null://null
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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</>
You can’t perform that action at this time.
0 commit comments