zeripath 855b1923f0 Correct the fallbacks for mailer configuration (#21945)
Unfortunately the fallback configuration code for [mailer] that were
added in #18982 are incorrect. When you read a value from an ini section
that key is added. This leads to a failure of the fallback mechanism.
Further there is also a spelling mistake in the startTLS configuration.

This PR restructures the mailer code to first map the deprecated
settings on to the new ones - and then use ini.MapTo to map those on to
the struct with additional validation as necessary.

Ref #21744

Signed-off-by: Andrew Thornton <[email protected]>
2022-11-27 10:08:40 +00:00
S
Description
No description provided
Apache-2.0
14 MiB
Languages
TypeScript 42%
MDX 31.2%
Astro 7.9%
JavaScript 6.4%
Shell 6.3%
Other 6.2%