Update code to use the new SMTP schema selection.
Move code to common.BaseConfig
Add changelog for #3403.