Thursday, November 1, 2001 12:43 AM
Are you sure you want to query an SMTP server? SMTP servers are used to *send* email, you want to be checking a POP3 or IMAP Server.
I prefer to give code examples, but this would be too much for here. The best thing for you would be to have a look at http://java.sun.com/products/javamail/index.html.
Then just create a Thread which checks the server every 5 minutes.