Actually I have already imported the jar files which was mentioned in another topic. I imported these files : activation.jar, dsn.jar, pop3.jar, mail.jar, mailapi.jar, imap.jar, smtp.jar. Before that, I was taking another message which was a problem about connecting. After I imported the jar files, the message changed to that one which says no message found.