email sending service was implemented in a seperate thread