Updated email sending scripts