Started on factoring out SMTP configuration.