tidied email script