File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

General question how does email client knows about incoming mail?

 
Meir Yan
Ranch Hand
Posts: 599
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all ( im not sure this is the right form ,sorry)
i need to write simple client that connects to the email server and will know when serten email
massage is arriving ,
my question is how does the ordinary email clients works and know that
email are arriving ?
i have the code and every thing but i miss the way to how to implement this part .
i dont know if the idea of connection every N seconds to the email server will be the right idea.
does they check every N seconds the server or they have some of other method to do this?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Meir Yan:
i dont know if the idea of connection every N seconds to the email server will be the right idea.
does they check every N seconds the server or they have some of other method to do this?


That's exactly how they do it (it's called "pulling") - although it's probably a better idea to do it every couple of minutes instead of seconds. Most email clients allow you to configure the interval.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic