mirror of
https://github.com/symfony/recipes.git
synced 2026-09-11 23:26:27 +03:00
Merge pull request #596
This commit is contained in:
@@ -4,5 +4,6 @@
|
||||
},
|
||||
"env": {
|
||||
"#1": "MAILER_DSN=smtp://localhost"
|
||||
}
|
||||
},
|
||||
"aliases": ["mailer", "mail"]
|
||||
}
|
||||
|
||||
@@ -8,11 +8,4 @@
|
||||
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</>
|
||||
|
||||
@@ -10,6 +10,5 @@
|
||||
"#2": "For a generic SMTP server, use: \"smtp://localhost:25?encryption=&auth_mode=\"",
|
||||
"#3": "Delivery is disabled by default via \"null://localhost\"",
|
||||
"MAILER_URL": "null://localhost"
|
||||
},
|
||||
"aliases": ["mailer", "mail"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user