Created emailFunctions class