OfficeDev / ews-java-api

A java client library to access Exchange web services. The API works against Office 365 Exchange Online as well as on premises Exchange.
MIT License
870 stars 560 forks source link

EWS Send() is not responding #760

Open ravi-garagaparti opened 2 years ago

ravi-garagaparti commented 2 years ago

We are using EWS API and observed that send() (https://learn.microsoft.com/en-us/dotnet/api/microsoft.exchange.webservices.data.emailmessage.send?view=exchange-ews-api) is not responding and rest of the code is blocking when it called. Code is working fine when we commented this. Not sure what was the issue and couldnt find proper solution for this. Please someone help on below points.

try{ LOGGER.info("Before sending mail"); emailMsg.send(); LOGGER.info("After sent mail"); } catch (Exception e) { LOGGER.error("Exception while sending email in sendEmail method {}",e); e.printStackTrace(); }

How to track this in Debug mode? How can we confirm whether send() is working or not?

Regards, Ravi G