added basic email receiving functionality