Updated notify script with more email parameters