fixed the emailing service