Access Microsoft Exchange / Office 365 mail using EWS

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
trmpluym
Posts: 258
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 8 times
Been thanked: 27 times

Access Microsoft Exchange / Office 365 mail using EWS

Post by trmpluym » Sat Oct 12, 2019 9:56 am

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: 2199
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 215 times
Been thanked: 35 times
Contact:

Post by danielmaximiliano » Sat Oct 12, 2019 10:06 pm

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
AUGE_OHR
Posts: 572
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 75 times
Been thanked: 126 times

Post by AUGE_OHR » 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 :?:

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: 2199
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 215 times
Been thanked: 35 times
Contact:

Post by danielmaximiliano » Wed Oct 16, 2019 2:03 am

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 648 times
[/centre]
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
danielmaximiliano
Posts: 2199
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 215 times
Been thanked: 35 times
Contact:

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

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
AUGE_OHR
Posts: 572
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 75 times
Been thanked: 126 times

Post by AUGE_OHR » Wed Oct 16, 2019 8:04 am

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: 572
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 75 times
Been thanked: 126 times

Post by AUGE_OHR » Wed Oct 16, 2019 8:06 am

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: 258
Joined: Tue Jul 15, 2014 6:52 pm
Location: The Netherlands
Has thanked: 8 times
Been thanked: 27 times

Post by trmpluym » Sat Dec 07, 2019 1:05 pm

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