8000 feature #5724 Describe configuration behaviour with multiple mailers … · symfony/symfony-docs@85950a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85950a2

Browse files
committed
feature #5724 Describe configuration behaviour with multiple mailers (xelan)
This PR was squashed before being merged into the 2.3 branch (closes #5724). Discussion ---------- Describe configuration behaviour with multiple mailers | Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | all | Fixed tickets | symfony/swiftmailer-bundle#111 This PR describes the behaviour when multiple mailers are configured. Commits ------- 887e8ba Describe configuration behaviour with multiple mailers
2 parents 59e9f74 + 887e8ba commit 85950a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reference/configuration/swiftmailer.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,3 +303,10 @@ Each mailer is registered as a service::
303303

304304
// returns the second mailer
305305
$container->get('swiftmailer.mailer.second_mailer');
306+
307+
.. caution::
308+
309+
When configuring multiple mailers, options must be placed under the appropriate
310+
mailer key of the configuration. Options placed directly under the ``swiftmailer``
311+
key will not be applied to all mailers, but will configure a mailer named
312+
``default`` instead.

0 commit comments

Comments
 (0)
0