Skip to content

Commit f713212

Browse files
fritzmgjaviereguiluz
authored andcommitted
[Mailer] Document new Mailer transport options
1 parent 520471b commit f713212

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

mailer.rst

+51
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)