` that can be used by the mailer. A transport name is the key and the dsn is the value.
+
+envelope
+........
+
+sender
+""""""
+
+**type**: ``string``
+
+Sender used by the ``Mailer``. Keep in mind that this setting override a sender set in the code.
+
+recipients
+""""""""""
+
+**type**: ``array``
+
+Recipients used by the ``Mailer``. Keep in mind that this setting override recipients set in the code.
+
+.. configuration-block::
+
+ .. code-block:: yaml
+
+ # config/packages/mailer.yaml
+ framework:
+ mailer:
+ dsn: 'smtp://localhost:25'
+ envelope:
+ recipients: ['admin@symfony.com', 'lead@symfony.com']
+
+ .. code-block:: xml
+
+
+
+
+
+
+
+ admin@symfony.com
+ lead@symfony.com
+
+
+
+
+
+ .. code-block:: php
+
+ // config/packages/mailer.php
+ namespace Symfony\Component\DependencyInjection\Loader\Configurator;
+ return static function (ContainerConfigurator $containerConfigurator): void {
+ $containerConfigurator->extension('framework', [
+ 'mailer' => [
+ 'dsn' => 'smtp://localhost:25',
+ 'envelope' => [
+ 'recipients' => [
+ 'admin@symfony.com',
+ 'lead@symfony.com',
+ ]
+ ]
+ ]
+ ]);
+ };
+
+.. _mailer-headers:
+
+headers
+.......
+
+**type**: ``array``
+
+Headers to add to emails. key (``name`` attribute in xml format)
+is the header name and value the header value.
+
workflows
~~~~~~~~~
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
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:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy