Page 1 of 1
Access Microsoft Exchange / Office 365 mail using EWS
Posted: Sat Oct 12, 2019 9:56 am
by trmpluym
Hi All,
Has somebody experience to access Microsoft Exchange / Office 365 mail using EWS ?
See:
https://docs.microsoft.com/en-us/exchan ... n-exchange
Maybe some kind of library ?
Theo
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Sat Oct 12, 2019 10:06 pm
by danielmaximiliano
Try download API
https://www.microsoft.com/en-us/downloa ... x?id=42951
The following files are installed by EwsManagedApi.msi:
Microsoft.Exchange.WebServices.dll The signed .NET assembly that implements the EWS Managed API.
Microsoft.Exchange.WebServices.xml Provides a Visual Studio .NET IntelliSense file for the EWS Managed API.
Microsoft.Exchange.WebServices.Auth.dll Provides an API to validate, parse and process Exchange Identity Tokens to be used by mail apps for Outlook.
Microsoft.Exchange.WebServices.Auth.xml Provides a Visual Studio .NET IntelliSense file for the Auth library.
GettingStarted.doc Provides additional help for and information about how to use the API.
License Terms.rtf Contains the license terms for using the EWS Managed API and documentation.
Readme.htm This file.
Redist.txt Defines which files and directories can be redistributed under the license terms.
Use CallDll32 to retrieve the handle and be able to manipulate the functions inside
Microsoft.Exchange.WebServices.Auth.dll
Microsoft.Exchange.WebServices.dll
Code: Select all
Use : nHandler := CallDll32( "OpenComFiscal" , "WINFIS32.DLL" , 1 , 0 )
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Tue Oct 15, 2019 8:09 pm
by AUGE_OHR
hi,
i like to know if old CDO Syntax still work with Exchange or do i need EWS now
i have download EwsManagedApi.msi which seems to be DOT NET ... can harbour use DOT NET DLL
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Wed Oct 16, 2019 2:03 am
by danielmaximiliano
AUGE_OHR wrote: ↑Tue Oct 15, 2019 8:09 pm
hi,
i like to know if old CDO Syntax still work with Exchange or do i need EWS now
No...
Client Access protocol architecture
The Client Access services on Exchange Mailbox servers are responsible for accepting all forms of client connections. The Client Access (frontend) services proxy these connections to the backend services on the destination Mailbox server (the local server or a remote Mailbox server that holds the active copy of the user's mailbox). Clients don't directly connect to the backend services. This communication is shown in the following diagram.
- protocol.png (32.84 KiB) Viewed 3125 times
[/centre]
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Wed Oct 16, 2019 2:46 am
by danielmaximiliano
AUGE_OHR wrote: ↑Tue Oct 15, 2019 8:09 pm
i have download EwsManagedApi.msi which seems to be DOT NET ... can harbour use DOT NET DLL
See
http://www.dotnetperls.com/dllimport
https://blogs.msdn.microsoft.com/deepta ... a-interop/
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Wed Oct 16, 2019 8:04 am
by AUGE_OHR
danielmaximiliano wrote: ↑Wed Oct 16, 2019 2:03 am
AUGE_OHR wrote: ↑Tue Oct 15, 2019 8:09 pm
i like to know if old CDO Syntax still work with Exchange or do i need EWS now
No...
ok THX
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Wed Oct 16, 2019 8:06 am
by AUGE_OHR
WOW ...
but those DLL must be "prepared" ... this i have to learn.
THX
Re: Access Microsoft Exchange / Office 365 mail using EWS
Posted: Sat Dec 07, 2019 1:05 pm
by trmpluym
EWS using Harbour directly, seems to be very complex. Maybe by using PowerShell is the way to go:
https://automativity.com/Using-the-EWS- ... owershell/
Theo