mwag
mwag

Reputation: 4045

GoLang wrapper for EWS / ExchangeService

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.

Upvotes: 1

Views: 2610

Answers (3)

Muhammad Hewedy
Muhammad Hewedy

Reputation: 30078

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

Upvotes: 1

tmack8080
tmack8080

Reputation: 26

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.

Upvotes: 1

tmack8080
tmack8080

Reputation: 21

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

Upvotes: 2

Related Questions