Skip to content

Commit 1da6b0b

Browse files
l-vowouterj
authored andcommitted
Complete documentation about mailer integration
1 parent b25e17a commit 1da6b0b

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

mailer.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
4646
xsi:schemaLocation="http://symfony.com/schema/dic/services
4747
https://symfony.com/schema/dic/services/services-1.0.xsd
4848
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
49+
4950
<framework:config>
5051
<framework:mailer dsn="%env(MAILER_DSN)%"/>
5152
</framework:config>
@@ -55,6 +56,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
5556
5657
// config/packages/mailer.php
5758
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
59+
5860
return static function (ContainerConfigurator $containerConfigurator): void {
5961
$containerConfigurator->extension('framework', [
6062
'mailer' => [
@@ -83,7 +85,7 @@ sendmail ``sendmail://default`` Mailer uses the local se
8385
Using a 3rd Party Transport
8486
~~~~~~~~~~~~~~~~~~~~~~~~~~~
8587

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
8789
provider. Mailer supports several - install whichever you want:
8890

8991
================== =============================================

reference/configuration/framework.rst

+16
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Configuration
155155

156156
* :ref:`dsn <mailer-dsn>`
157157
* `transports`_
158+
* `message_bus`_
158159
* `envelope`_
159160

160161
* `sender`_
@@ -846,6 +847,8 @@ can be separated by colons, commas or spaces (e.g. ``'RC4-SHA:TLS13-AES-128-GCM-
846847

847848
.. _http-headers:
848849

850+
.. _http-headers:
851+
849852
headers
850853
.......
851854

@@ -2813,6 +2816,18 @@ transports
28132816
A :ref:`list of DSN <multiple-email-transports>` that can be used by the
28142817
mailer. A transport name is the key and the dsn is the value.
28152818

2819+
message_bus
2820+
...........
2821+
2822+
.. versionadded:: 5.1
2823+
2824+
The ``message_bus`` option was introduced in Symfony 5.1.
2825+
2826+
**type**: ``string`` **default**: ``null`` or default bus if Messenger component is installed
2827+
2828+
Service identifier of the message bus to use when using the
2829+
:doc:`Messenger component </messenger>` (e.g. ``messenger.default_bus``).
2830+
28162831
envelope
28172832
........
28182833

@@ -2867,6 +2882,7 @@ recipients set in the code.
28672882
28682883
// config/packages/mailer.php
28692884
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
2885+
28702886
return static function (ContainerConfigurator $containerConfigurator): void {
28712887
$containerConfigurator->extension('framework', [
28722888
'mailer' => [

0 commit comments

Comments
 (0)