当前位置: 首页 > 知识库问答 >
问题:

Exchange Web Services (EWS) and Gmail/Google Apps

汪茂
2023-03-14

Given that my iPhone seems to be able to connect to Google Apps mail (ie: gmail, but with my own domain name) and use the calendar and contacts, I presumed that I'd be able to connect programmatically with Exchange Web Services.I assume the iPhone just treats gmail like an Exchange server, but the presence of the Google Apps Sync when using Outlook on the desktop to connect to gmail makes me wonder.

The short version of my question is: can I use EWS to connect to gmail and access my contacts and calendars (as well as email)?

        ExchangeService service = new ExchangeService();
        service.AutodiscoverUrl("davepl@mygmaildomainname.com");

        EmailMessage message = new EmailMessage(service);
        message.Subject = "Subject";
        message.Body = "Body";
        message.ToRecipients.Add("davepl@mygmaildomainname.com");
        message.Save();

        message.SendAndSaveCopy();

共有1个答案

俞新翰
2023-03-14

Gmail implements ActiveSync API, not EWS.

 类似资料:
  • EWS

    我是在VB. Net中编写EWS的新手。我的目标是从到达指定收件箱的邮件中提取附件并将它们保存到指定的文件夹中。我测试了一些代码,这些代码在针对我的域/Exchange帐户使用时似乎效果很好。 然后,我创建了一个新帐户并尝试使用相同的代码。它开始产生错误: 请求失败。远程服务器返回错误:(401)未授权。 到目前为止,代码非常基本: 错误是由最后一行产生的。 到目前为止,我已经比较了工作用户和新创

  • EWS-Client 是一个Perl模块,用来调用微软的Exchange Web 服务 API,可以访问的服务包括日程和联系人信息。

  • ews-java-api 是用来访问 Exchange Web 服务的 Java 客户端库,API 支持 Office 365 Exchange Online。

  • 我正在使用EWS搜索和显示电子邮件。然而,项目的最后一步是将特定的消息保存为文件系统上的.msg文件。我知道这在EWS中是不可能的,所以我需要使用Interop.Outlook来实现这一点。我的问题是:根据EWS提供的信息,找到Outlook消息的最佳方法是什么。我尝试将通过EWS从exchange获得的Message.ID和ConversationId与Outlook的messageId关联起来

  • How can I get it to list all the shared calendars, and how can I get it to not include the folders that have been deleted?

  • 这些是build中的依赖项。gradle: 下面是我目前正在测试的onCreate:

  • This problem has been bugging me for a while.When using third party email clients that use EWS you can tell that others struggle with this topic aswell.These are the things I've tried so far: > Creati

  • How would I access a Shared Calendar from Exchange using the EWS or the EWS managed API?I need to be able to read the items from it.