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

Appearance settings

Commit b587cdb

Browse filesBrowse files
committed
minor #13911 [Mailer] Document new Mailer transport options (fritzmg)
This PR was squashed before being merged into the 5.2 branch. Discussion ---------- [Mailer] Document new Mailer transport options This documents the additional options for the Mailer component introduced in symfony/symfony#37432 Commits ------- f713212 [Mailer] Document new Mailer transport options
2 parents 520471b + f713212 commit b587cdb
Copy full SHA for b587cdb

File tree

1 file changed

+51
-0
lines changed
Filter options

1 file changed

+51
-0
lines changed

‎mailer.rst

Copy file name to clipboardExpand all lines: mailer.rst
+51Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,57 @@ the application or when using a self-signed certificate::
253253

254254
The ``verify_peer`` option was introduced in Symfony 5.1.
255255

256+
Other Options
257+
~~~~~~~~~~~~~
258+
259+
``command``
260+
Command to be executed by ``sendmail`` transport::
261+
262+
$dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t'
263+
264+
.. versionadded:: 5.2
265+
266+
This option was introduced in Symfony 5.2.
267+
268+
269+
``local_domain``
270+
The domain name to use in ``HELO`` command::
271+
272+
$dsn = 'smtps://smtp.example.com?local_domain=example.org'
273+
274+
.. versionadded:: 5.2
275+
276+
This option was introduced in Symfony 5.2.
277+
278+
``restart_threshold``
279+
The maximum number of messages to send before re-starting the transport. It
280+
can be used together with ``restart_threshold_sleep``::
281+
282+
$dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1'
283+
284+
.. versionadded:: 5.2
285+
286+
This option was introduced in Symfony 5.2.
287+
288+
``restart_threshold_sleep``
289+
The number of seconds to sleep between stopping and re-starting the transport.
290+
It's commont to combine it with ``restart_threshold``::
291+
292+
$dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1'
293+
294+
.. versionadded:: 5.2
295+
296+
This option was introduced in Symfony 5.2.
297+
298+
``ping_threshold``
299+
The minimum number of seconds between two messages required to ping the server::
300+
301+
$dsn = 'smtps://smtp.example.com?ping_threshold=200'
302+
303+
.. versionadded:: 5.2
304+
305+
This option was introduced in Symfony 5.2.
306+
256307
Creating & Sending Messages
257308
---------------------------
258309

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.