Error while sending mails using EWSJavaAPI
问题 I am trying to send mails from my java web application by using EWS Java api. But ia m getting an error when sending mails. We have Exchange 2013 server installed. Here is my code ExchangeService service = new ExchangeService(); ExchangeCredentials credentials = new WebCredentials("username","password"); service.setCredentials(credentials); try { service.setUrl(new URI("host/ews/Exchange.asmx")); service.setTraceEnabled(true); EmailMessage msg = new EmailMessage(service); msg.setSubject(