Refinements to send e-mail after test