Script with email sending ability