Added read email functiion