there is quite a bit of circular dep between settings, platform and mail code. this will be removed in future commits.