Microsoft Exchange与GMail

时间:2015-04-23 10:27:14

标签: java gmail exchangewebservices

我正在尝试将EWS Java API与Google Mail结合使用。

ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP1);
ExchangeCredentials credentials = new WebCredentials("me@GMAIL.com","myPass");
service.setCredentials(credentials);
service.setUrl(new URI("<ews_url>"));

google mail的“ews_url”是什么?

1 个答案:

答案 0 :(得分:2)

不支持使用EWS Java API来调用GMail。您只能将它用于Exchange 2007 SP1&amp;更高或Office 365。