ex_ews_version

Select the Exchange Server version.

Member of namespace

Ewsmail

Syntax

bool ex_ews_version (int version)

Parameters

version
Type: int

Parameters

The value 0, 1 or 2, indicating the following:
  • 1 = Exchange 2007 SP1
  • 2 = Exchange 2010
  • 0 = latest version (default)

Returns

Always True.

Level

Batch level, Open event.

Details

Each version of Exchange uses a slightly different communication protocol. Use this action to set the expected version.
In order to connect successfully with:
  • Exchange 2007 SP1, call this action with parameter 1 before im_login.
  • Exchange 2010, call action with parameter 2 before im_login.
  • The latest version known by the .NET library in use, which is .NET 3.5 and is currently Exchange 2010. This action must be called with parameter 0.

If this action is not called at all it uses the default 0, the latest version.

Example:
ex_ews_version(1)
ex_login("mymailserver/Exchange.asmx","Username@Org","password")