Hello,
Hi,
<span style=“font-size: 9pt; font-family: “Courier New”;”>IEWSClient client =
EWSClient.getEWSClient(<span style=“font-size:9.0pt;
font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;color:green”>“https://outlook.office365.com/ews/exchange.asmx”<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:green”>"user@domainonmicrosoft.com"<span style=“font-size: 9pt; font-family: “Courier New”;”>, <span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:green”>“password”<span style=“font-size: 9pt; font-family: “Courier New”;”>);
ExchangeMessageInfoCollection coll = client.listMessages(<span style=“font-size:9.0pt;font-family:“Courier New”;mso-fareast-font-family:“Times New Roman”;
color:green”>“Inbox”<span style=“font-size: 9pt; font-family: “Courier New”;”>);
System.<span style=“font-size:9.0pt;font-family:“Courier New”;
mso-fareast-font-family:“Times New Roman”;color:#660E7A”>out<span style=“font-size: 9pt; font-family: “Courier New”;”>.println(coll.size());<o:p></o:p>