emailAccount - functions and tests