I need this script to email the log it generates