File tree 2 files changed +19
-1
lines changed
2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
46
46
xsi : schemaLocation =" http://symfony.com/schema/dic/services
47
47
https://symfony.com/schema/dic/services/services-1.0.xsd
48
48
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
49
+
49
50
<framework : config >
50
51
<framework : mailer dsn =" %env(MAILER_DSN)%" />
51
52
</framework : config >
@@ -55,6 +56,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
55
56
56
57
// config/packages/mailer.php
57
58
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
59
+
58
60
return static function (ContainerConfigurator $containerConfigurator): void {
59
61
$containerConfigurator->extension('framework', [
60
62
'mailer' => [
@@ -83,7 +85,7 @@ sendmail ``sendmail://default`` Mailer uses the local se
83
85
Using a 3rd Party Transport
84
86
~~~~~~~~~~~~~~~~~~~~~~~~~~~
85
87
86
- Instead of using your own SMTP server, you can send emails via a 3rd party
88
+ Instead of using your own SMTP server or sendmail binary , you can send emails via a 3rd party
87
89
provider. Mailer supports several - install whichever you want:
88
90
89
91
================== ==============================================
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ Configuration
178
178
179
179
* :ref: `dsn <mailer-dsn >`
180
180
* `transports `_
181
+ * `message_bus `_
181
182
* `envelope `_
182
183
183
184
* `sender `_
@@ -926,6 +927,8 @@ This setting is automatically set to true when one of the child settings is conf
926
927
927
928
.. _http-headers :
928
929
930
+ .. _http-headers :
931
+
929
932
headers
930
933
.......
931
934
@@ -3007,6 +3010,18 @@ transports
3007
3010
A :ref: `list of DSN <multiple-email-transports >` that can be used by the
3008
3011
mailer. A transport name is the key and the dsn is the value.
3009
3012
3013
+ message_bus
3014
+ ...........
3015
+
3016
+ .. versionadded :: 5.1
3017
+
3018
+ The ``message_bus `` option was introduced in Symfony 5.1.
3019
+
3020
+ **type **: ``string `` **default **: ``null `` or default bus if Messenger component is installed
3021
+
3022
+ Service identifier of the message bus to use when using the
3023
+ :doc: `Messenger component </messenger >` (e.g. ``messenger.default_bus ``).
3024
+
3010
3025
envelope
3011
3026
........
3012
3027
@@ -3061,6 +3076,7 @@ recipients set in the code.
3061
3076
3062
3077
// config/packages/mailer.php
3063
3078
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
3079
+
3064
3080
return static function (ContainerConfigurator $containerConfigurator): void {
3065
3081
$containerConfigurator->extension('framework', [
3066
3082
'mailer' => [
You can’t perform that action at this time.
0 commit comments