Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions mailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,57 @@ the application or when using a self-signed certificate::

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

Other Options
~~~~~~~~~~~~~

``command``
Command to be executed by ``sendmail`` transport::

$dsn = 'sendmail://default?command=/usr/sbin/sendmail%20-oi%20-t'

.. versionadded:: 5.2

This option was introduced in Symfony 5.2.


``local_domain``
The domain name to use in ``HELO`` command::

$dsn = 'smtps://smtp.example.com?local_domain=example.org'

.. versionadded:: 5.2

This option was introduced in Symfony 5.2.

``restart_threshold``
The maximum number of messages to send before re-starting the transport. It
can be used together with ``restart_threshold_sleep``::

$dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1'

.. versionadded:: 5.2

This option was introduced in Symfony 5.2.

``restart_threshold_sleep``
The number of seconds to sleep between stopping and re-starting the transport.
It's commont to combine it with ``restart_threshold``::

$dsn = 'smtps://smtp.example.com?restart_threshold=10&restart_threshold_sleep=1'

.. versionadded:: 5.2

This option was introduced in Symfony 5.2.

``ping_threshold``
The minimum number of seconds between two messages required to ping the server::

$dsn = 'smtps://smtp.example.com?ping_threshold=200'

.. versionadded:: 5.2

This option was introduced in Symfony 5.2.

Creating & Sending Messages
---------------------------

Expand Down