Skip to content

Commit 887e8ba

Browse files
xelanwouterj
authored andcommitted
Describe configuration behaviour with multiple mailers
1 parent 0241228 commit 887e8ba

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)