mail sending bug solved