implementing email; appearing only to console