[Compass-ci] [PATCH v2 lkp-tests] tests/send_email: refactor send_email