[Applications,Core] Fixes mail sending according to user settings.