Isolate SMTP Settings from Source code repo, or tie them to APP ID

Could you use environment variables to achieve this?