periodical activation of the!_NEWLINE_!console program with swing.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alex_Brown
Posted On:   Wednesday, October 31, 2001 07:58 AM

I would like to make a query
to SMTP server every 5 minutes.
How it is possible to do
in the JAVA console program with
the swing classes?

Re: periodical activation of the!_NEWLINE_!console program with swing.

Posted By:   Christopher_Brind  
Posted On:   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.

About | Sitemap | Contact