additions for sending email
email script working