Update code to use the new SMTP schema selection.
Move code to common.BaseConfig