Skip to content

Commit

Permalink
feature #5724 Describe configuration behaviour with multiple mailers …
Browse files Browse the repository at this point in the history
…(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
  • Loading branch information
wouterj committed Feb 6, 2016
2 parents 59e9f74 + 887e8ba commit 85950a2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions reference/configuration/swiftmailer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,10 @@ Each mailer is registered as a service::

// returns the second mailer
$container->get('swiftmailer.mailer.second_mailer');

.. caution::

When configuring multiple mailers, options must be placed under the appropriate
mailer key of the configuration. Options placed directly under the ``swiftmailer``
key will not be applied to all mailers, but will configure a mailer named
``default`` instead.

0 comments on commit 85950a2

Please sign in to comment.