We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Does Aspose Email Java API supports MS Office 365?

Hello,


We are going to take Aspose license for Email (Java). We will be using Aspose Java Email API for fetching out of office flag and automatic replies but before that we would like to confirm if this
API supports Outlook 365 (Office 365 suite) or not? Please confirm.


Thanks

Hi,


Thank you for contacting Aspose support team.

Aspose.Email can be used to access the Office365 account. You may please check this feature using following sample code and share the feedback.

<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>