Implemented email gateway