Skip to content

Commit a389dfb

Browse files
l-vowouterj
authored andcommitted
Complete documentation about mailer integration
1 parent 2e4be7c commit a389dfb

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

mailer.rst

+13-7
Original file line numberDiff line numberDiff line change
@@ -73,14 +73,20 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
7373
Using Built-in Transports
7474
~~~~~~~~~~~~~~~~~~~~~~~~~
7575

76-
============ ======================================== ==============================
76+
.. versionadded:: 5.2
77+
78+
The native protocol was introduced in Symfony 5.2.
79+
80+
============ ======================================== ==============================================================
7781
DSN protocol Example Description
78-
============ ======================================== ==============================
79-
smtp ``smtp://user:[email protected]:25`` Mailer uses an SMTP server to
80-
send emails
81-
sendmail ``sendmail://default`` Mailer uses the local sendmail
82-
binary to send emails
83-
============ ======================================== ==============================
82+
============ ======================================== ==============================================================
83+
smtp ``smtp://user:[email protected]:25`` Mailer uses an SMTP server to send emails
84+
sendmail ``sendmail://default`` Mailer uses the local sendmail binary to send emails
85+
native ``native://default`` Mailer uses the sendmail binary and options configured
86+
in the ``sendmail_path`` setting of ``php.ini``. On Windows
87+
hosts, Mailer fallbacks to ``smtp`` and ``smtp_port``
88+
``php.ini`` settings when ``sendmail_path`` is not configured.
89+
============ ======================================== ==============================================================
8490

8591
Using a 3rd Party Transport
8692
~~~~~~~~~~~~~~~~~~~~~~~~~~~

reference/configuration/framework.rst

+16-2
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@ Configuration
184184
* `sender`_
185185
* `recipients`_
186186

187+
* :ref:`headers <mailer-headers>`
188+
187189
* `php_errors`_
188190

189191
* `log`_
@@ -927,8 +929,6 @@ This setting is automatically set to true when one of the child settings is conf
927929

928930
.. _http-headers:
929931

930-
.. _http-headers:
931-
932932
headers
933933
.......
934934

@@ -3091,6 +3091,20 @@ recipients set in the code.
30913091
]);
30923092
};
30933093
3094+
.. _mailer-headers:
3095+
3096+
headers
3097+
.......
3098+
3099+
.. versionadded:: 5.2
3100+
3101+
The ``headers`` mailer option was introduced in Symfony 5.2.
3102+
3103+
**type**: ``array``
3104+
3105+
Headers to add to emails. The key (``name`` attribute in xml format) is the
3106+
header name and value the header value.
3107+
30943108
workflows
30953109
~~~~~~~~~
30963110

0 commit comments

Comments
 (0)