File tree 2 files changed +29
-9
lines changed
2 files changed +29
-9
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,20 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
73
73
Using Built-in Transports
74
74
~~~~~~~~~~~~~~~~~~~~~~~~~
75
75
76
- ============ ======================================== ==============================
76
+ .. versionadded :: 5.2
77
+
78
+ The native protocol was introduced in Symfony 5.2.
79
+
80
+ ============ ======================================== ==============================================================
77
81
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
+ ============ ======================================== ==============================================================
84
90
85
91
Using a 3rd Party Transport
86
92
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -184,6 +184,8 @@ Configuration
184
184
* `sender `_
185
185
* `recipients `_
186
186
187
+ * :ref: `headers <mailer-headers >`
188
+
187
189
* `php_errors `_
188
190
189
191
* `log `_
@@ -927,8 +929,6 @@ This setting is automatically set to true when one of the child settings is conf
927
929
928
930
.. _http-headers :
929
931
930
- .. _http-headers :
931
-
932
932
headers
933
933
.......
934
934
@@ -3091,6 +3091,20 @@ recipients set in the code.
3091
3091
]);
3092
3092
};
3093
3093
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
+
3094
3108
workflows
3095
3109
~~~~~~~~~
3096
3110
You can’t perform that action at this time.
0 commit comments