Update emailScript