fix mail sending