Questions tagged [ewsjavaapi]

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

Java implementation of the Exchange Web Services (EWS) API. This API gives developers programmatic access to Exchange Server 2007 SP1 and above.

153 questions
1
vote
1 answer

Message body changes after updating EmailMessage

My target is to load an email message and if it's a new one mark it as read. So here is what I am doing: EmailMessage email=EmailMessage.bind(service,itemId); email.load(); …
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
1
vote
1 answer

Retrieve only email messages from inbox in EWSJavaAPI

I am using EWS Java API to read Outlook inbox. The inbox can contain contacts items and calendar items. I want to retrieve only the email messages, how to do that?
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
1
vote
1 answer

How to validate credentials in EWS Java API

I am using EWSJavaAPI 1.1.5. I am trying to login with invalid credentials, but I don't get any exceptions. Please advise how to detect and handle invalid login. Here is my code: String host = "myhost"; ExchangeService service = null; try { …
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
1
vote
2 answers

Cannot send email with EWS Java API

I am using EWS to send emails on Exchange 2010 as follows: ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new WebCredentials(email, password); service.setCredentials(credentials); service.setUrl(new…
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
1
vote
2 answers

How to find sender of an attached email with ews

In EWS, the EmailMessage has a sender (emailMessage.getSender()) and may has attachments (emailMessage.getAttachments()). These attachments can be FileAttachment (for files) or ItemAttachment (for attached email). There is a lot of information on…
Jean-Charles
  • 1,690
  • 17
  • 28
0
votes
1 answer

Why am I not able to read the complete email body using Exchange Web Service Java API?

I am using EWS Java API to read and process emails. One such email contains few conversation and a MS Teams meeting information at the end. While reading such an email, the EmailMessage.getBody() returns only the MS Teams meeting information and all…
Anjan Baradwaj
  • 1,219
  • 5
  • 27
  • 54
0
votes
0 answers

EWS Java API 2.0 - The Autodiscover service couldn't be located

I am using EWS Java API 2.0 to access user mailboxes from Exchange 2019 and O365 using autodiscoverUrl() method as EWS URL might change with new Client Access servers. PFB the code snippet: private static ExchangeService exchangeService; …
0
votes
1 answer

How do I access MAPI properties using EWS Java API?

I am working to process Exchange emails and figure out when an e-mail was read. I believe this information can be obtained using one of the MAPI Properties (PR_LAST_MODIFICATION_TIME). Can someone help me to get this property value using EWS Java…
NareshPS
  • 103
  • 1
  • 1
  • 4
0
votes
0 answers

Client received SOAP Fault from server: The server cannot service this request right now

I am creating and sending mails (set up on office 365) using exchange server. I am using EWS server in java to send mails. From a week ago, I am getting the below issue on Windows machines when sending…
skapoor03
  • 1
  • 1
0
votes
1 answer

How to use Modern Authentication instead of Basic authentication in EWS Android

I have been using the ews-android-api in my android application to get the calendar events etc.. According to the docs, the basic authentication will be deprecated on the coming October 2020. I believe the basic authentication have been using in my…
0
votes
1 answer

Is there a way to find out whether Folder is a WellKnownFolder?

I am currently fetching the WellKnownFolder and then matching with the existing FolderId. This is basically causing a lot of re-fetches as i'll have to check for each folder and WellKnownFolder. public boolean isWellKnownFolder(String folderId,…
0
votes
1 answer

How to react on newly created Appointments?

I am looking for a way to get a delta of Appointments. Basically what I want is to react on newly created Appointments. To get newly created / unread messages there is a SearchFilter in the java ews api that I use. Unfortunately AppointmentSchema…
Michael Kemmerzell
  • 4,802
  • 4
  • 27
  • 43
0
votes
2 answers

ews-java-api create new appointment

I want to create a simple java program that creates a new appointment for my outlook calendar, but I don't know what went wrong. I also tried to send a simple email but it gives the same error. source code:…
0
votes
1 answer

Is Outlook.com blocking EWS connections coming from Heroku/AWS?

Our service is connecting to https://outlook.office365.com using EWS on behalf of an @outlook.com user. We're getting status 403 and the header X-BackEndHttpStatus : 403. What does it mean? EWS connections seem to work for other @outlook.com users…
Alexey
  • 556
  • 1
  • 5
  • 18
0
votes
1 answer

How to fetch "To" information from email using ews in java

I need your help in Fetching TO information from the mail using Java. I have got C# code, but dont know how to write into Java. For reference I am placing C# code below here. Recipients =…
Karthik tn
  • 19
  • 8