I'm having trouble setting up Monolog to use Swiftmailer and HTML formatting. I have several monologue handlers and swiftmail mailers that can be a problem. Here is my config.yml
Monologue:
services: monolog.formatter.html: class: Monolog\Formatter\HtmlFormatter monolog: channels: ["orders", "support"] handlers:
Swiftmailer Section:
# Swiftmailer Configuration swiftmailer: default_mailer: %mailer_default_config% mailers: default: delivery_address: "%mailer_delivery_address%" transport: "%mailer_transport%" host: "%mailer_host%" username: "%mailer_user%" password: "%mailer_password%" spool: type: "%mailer_spool_type%" path: "%kernel.root_dir%/spool" errors: delivery_address: "%mailer_errors_delivery_address%" transport: "%mailer_errors_transport%" host: "%mailer_errors_host%" username: "%mailer_errors_user%" password: "%mailer_errors_password%" spool: type: "%mailer_errors_spool_type%" path: "%kernel.root_dir%/spool"
Errors are sent as text / html, but without table formatting. Any ideas?
// Ping @seldaek
Formatters editing seems to be installed on handlers:

swiftmailer symfony monolog
Leevi graham
source share