title: read email from an email acount on an exchange server through java mail api
body: <p>I  am trying to access an exchange server to <strong>read</strong> emails from a specific acount using  JAVA mail.</p>
  
  <p>I can access gmail with something like </p>
  
  <pre><code>Properties properties = System.getProperties();
  Session session = Session.getDefaultInstance(properties);
  store = session.getStore("pop3");
  store.connect(host, username, password);
  </code></pre>
  
  <p>but since I am using exchange I dont have pop3, 
  I only have server name : mysrv ,domain name: MYDOMIAN and a mailbox : my@mail.co.il.</p>
  
  <p>So what is the correct way to connect to exchange?</p>