]> BookStack Code Mirror - bookstack/commit
Mail Config: Updated how TLS is configured
authorDan Brown <redacted>
Sat, 24 Jun 2023 10:27:18 +0000 (11:27 +0100)
committerDan Brown <redacted>
Sat, 24 Jun 2023 10:32:07 +0000 (11:32 +0100)
commitdbb6c87580fba98686076d4351b17987bd2710bf
tree15fdcfbdbe96682970c5b3dcec5dbe3b1bf1e90a
parent9ae17efce9b3fce4d8636d14afdb005a4d795534
Mail Config: Updated how TLS is configured

After full review of current MAIL_ENCRYPTION usage in laravel and
smyfony mailer, this updates the options in BookStack to be simplified
and specific in usage:

- Removed mail.mailers.smtp.encryption option since it did not actually
  affect anything in the current state of dependancies.
- Updated MAIL_ENCRYPTION so values of tls OR ssl will force-enable tls
  via 'scheme' option with laravel passes to the SMTP transfport, which
  Smyfony uses as an indicator to force TLS.

When MAIL_ENCRYPTION is not used, STARTTLS will still be attempted by
symfony mailer.
Updated .env files to refer to BookStack docs (which was updated for
this) and to reflect correct default port.
Related to #4342
.env.example
.env.example.complete
app/Config/mail.php
tests/Unit/ConfigTest.php