diff --git a/mailer.rst b/mailer.rst index fedcc71c366..be20d228dd4 100644 --- a/mailer.rst +++ b/mailer.rst @@ -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 ---------------------------
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: