@@ -46,6 +46,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
4646 xsi : schemaLocation =" http://symfony.com/schema/dic/services
4747 https://symfony.com/schema/dic/services/services-1.0.xsd
4848 http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd" >
49+
4950 <framework : config >
5051 <framework : mailer dsn =" %env(MAILER_DSN)%" />
5152 </framework : config >
@@ -55,6 +56,7 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
5556
5657 // config/packages/mailer.php
5758 use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
59+
5860 return static function (ContainerConfigurator $containerConfigurator): void {
5961 $containerConfigurator->extension('framework', [
6062 'mailer' => [
@@ -71,19 +73,25 @@ over SMTP by configuring the DSN in your ``.env`` file (the ``user``,
7173Using Built-in Transports
7274~~~~~~~~~~~~~~~~~~~~~~~~~
7375
74- ============ ======================================== ==============================
76+ .. versionadded :: 5.2
77+
78+ The native protocol was introduced in Symfony 5.2.
79+
80+ ============ ======================================== ==============================================================
7581DSN protocol Example Description
76- ============ ======================================== ==============================
77- smtp ``smtp://user:pass@smtp.example.com:25 `` Mailer uses an SMTP server to
78- send emails
79- sendmail ``sendmail://default `` Mailer uses the local sendmail
80- binary to send emails
81- ============ ======================================== ==============================
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+ ============ ======================================== ==============================================================
8290
8391Using a 3rd Party Transport
8492~~~~~~~~~~~~~~~~~~~~~~~~~~~
8593
86- Instead of using your own SMTP server, you can send emails via a 3rd party
94+ Instead of using your own SMTP server or sendmail binary , you can send emails via a 3rd party
8795provider. Mailer supports several - install whichever you want:
8896
8997================== ==============================================
0 commit comments