Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb1a157b

Browse files
committed
feature#14083 Complete documentation about mailer integration (l-vo)
This PR was submitted for the 5.x branch but it was squashed and merged into the 5.2 branch instead.Discussion----------Complete documentation about mailer integration- Complete framework config reference with `Mailer` (based on#14087 plus `message_bus` and `headers` that was added after 4.4)- Add documentation about `native` DSN protocol (symfony/symfony#36131)Close#14066Commits-------a389dfb Complete documentation about mailer integration
2 parents2e4be7c +a389dfb commitb1a157b

File tree

2 files changed

+29
-9
lines changed

2 files changed

+29
-9
lines changed

‎mailer.rst

Lines changed: 13 additions & 7 deletions
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:pass@smtp.example.com: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:pass@smtp.example.com: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

Lines changed: 16 additions & 2 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp