implemented email module