block mail sending when SQL is down, code retab