Sample java project on how to connect to a mail account on outlook.com and get some data from it. Sample project how to write a Microsoft Exchange Server java client.
In case you want to use your private corporation MS Exchange server it's possible that you need to import some certificates:
- you should login to your outlook accont using web browser.
- the browser ask to accept certificates.
- eksport from the browser proper certificates to a file
- run: sudo keytool -import -alias YOUR-CERT-ALIAS-NAME -file YOUR-CERTIFICATE-FILE-NAME.crt -keystore /FULL_PATH_TO_YOUR-JAVA_/security/cacerts