This repository was archived by the owner on Feb 6, 2022. It is now read-only.
This repository was archived by the owner on Feb 6, 2022. It is now read-only.
Mailer options with multiple mailers #111
Closed
Description
When a mailer option like disable_delivery is set for an environment, it is only applied to the default mailer. For example, my config_test.yml contains
swiftmailer:
disable_delivery: true
However, in my opinion delivery should be disabled for all mailers when running in the test environment.
php app/console debug:swiftmailer --env=test
[swiftmailer] Current mailers
Name Transport Spool Delivery Single Address
mailer2 smtp NO YES
default (default mailer) smtp YES NO
The delivery_address option also behaves like that, it seems to be set only for the default mailer. In the manual no such behaviour is documented.
What is the recommended way to ensure that all mailers get the same disable_delivery and delivery_address options depending on the environment?
Thank you very much!
Metadata
Metadata
Assignees
Labels
No labels