Fixed #22734 -- Moved SMTP-related settings to a dictionary

Thanks Julian Wachholz for the report and the initial patch.
Feel free to line break before the < if it makes the line wrapping less awkward.