improved mail sending