GoLang封装了EWS / ExchangeService。

huangapple go评论80阅读模式
英文:

GoLang wrapper for EWS / ExchangeService

问题

我有一些使用ExchangeService(通过Microsoft.Exchange.WebServices.dll)对象的C#代码,用于执行一些典型的电子邮件任务(例如获取邮件,发送邮件)。我想用Go而不是C#来做同样的事情。最直接的方法是什么?我了解有一些工具,如CGo,但考虑到这是.NET框架的一部分,由MSFT提供的DLL,我怀疑这个过程并不像创建自己的DLL那样简单。

英文:

I have some C# code that uses the ExchangeService (via Microsoft.Exchange.WebServices.dll) object to do some typical email tasks (e.g. fetch email, send email). I'd like to be able to do the same thing, but using Go instead of C#. What is the most direct way to do this? I understand there are tools such as CGo but given that this is MSFT-provided DLL that is part of the .NET framework, I suspect the process is not as simple as it would be if I were creating my own DLL.

答案1

得分: 2

你必须自己编写SOAP请求到EWS。托管/.NET EWS API只是一个精心打包的SOAP请求集合。

英文:

You have to roll your own SOAP requests to EWS. The managed/.NET EWS API is just a nicely packaged set of SOAP requests.

答案2

得分: 1

你只能在.NET语言中使用托管的.dll,例如C#,PowerShell等。如果您不打算使用.NET语言,则必须构建自己的SOAP请求以供EWS使用。

顺便说一下,如果这是Exchange 2016环境,您可能需要了解与语言无关的Exchange REST API。

英文:

You can only use the managed .dll with a .NET language, i.e., C#, PowerShell, etc. If you are not going to use a .NET language then you have to construct your own SOAP requests for EWS to consume.

FYI, if this is an Exchange 2016 environment you might want to look into the Exchange REST API which is language agnostic.

答案3

得分: 0

我正在 https://github.com/mhewedy/ews 上工作,这可能是一个不错的起点。

英文:

I am working on https://github.com/mhewedy/ews can be a good start.

huangapple
  • 本文由 发表于 2016年11月29日 02:02:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/40850691.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定