symfony / swiftmailer-bundle

Symfony Swiftmailer Bundle
https://symfony.com/swiftmailer-bundle
MIT License
1.56k stars 151 forks source link

[BUG] Incompatible use of dynamic environment variables for encryption and auth_mode #224

Closed homersimpsons closed 6 years ago

homersimpsons commented 6 years ago
Q A
Bug report? yes
Feature request? no
RFC? no
How used? Symfony
Swiftmailer version 5.4.9
PHP version 7.1.11
Symfony version 3.4.4

Observed behaviour

I this issue: Incompatible use of dynamic environment variables "MAILER_ENCRYPTION" found in parameters. Same for auth_mode

Expected behaviour

Nothing (According to the doc)

The following options can be set via environment variables using the %env()% syntax: url, transport, username, password, host, port, timeout, source_ip, local_domain, encryption, auth_mode

Example

Just set parameters.mailer_encryption: '%env(MAILER_ENCRYPTION)%' and swiftmailer.encryption: "%mailer_encryption%" Same for auth_mode

(I don't know if the problem is in the doc or in SwiftMailer) Thank you for this bundle 🥇 (issue originally posted at https://github.com/swiftmailer/swiftmailer/issues/1054)

homersimpsons commented 6 years ago

Sorry, I didn't have the latest version of swiftmailer-bundle... It works :) Thank you !