Updates to internal email script