Unbreak sending emails using mailTargets() in safe_mode