initial working email module