Mail test script