added response_email function and tests (but not content)