commented for thread sleeps and added the mail api dependency to pom