title: How to use javamail to connect to ms exchange webmail?
body: <p>I checked that I am not able to access the pop 3 port and imap port. I think I can only access via https webmail.</p>
  
  <p>So for this case how do I actually connect to the microsoft exchange server and read the emails inside using java mail can anyone provide any specific code samples to achieve this?</p>