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