Access Microsoft Exchange / Office 365 mail using EWS

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Access Microsoft Exchange / Office 365 mail using EWS

Post 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
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post 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 )
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post 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 :o
have fun
Jimmy
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post 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
protocol.png (32.84 KiB) Viewed 3058 times
[/centre]
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post 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 :o
See
http://www.dotnetperls.com/dllimport
https://blogs.msdn.microsoft.com/deepta ... a-interop/
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post 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
have fun
Jimmy
User avatar
AUGE_OHR
Posts: 2060
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post by AUGE_OHR »

danielmaximiliano wrote: Wed Oct 16, 2019 2:46 am
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 :o
http://www.dotnetperls.com/dllimport
https://blogs.msdn.microsoft.com/deepta ... a-interop/
WOW ...
but those DLL must be "prepared" ... this i have to learn.
THX
have fun
Jimmy
trmpluym
Posts: 303
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands

Re: Access Microsoft Exchange / Office 365 mail using EWS

Post 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
Post Reply