Handle incoming and outgoing emails