Jump to content
bazzer747

Outlook Server Execution Failed

Recommended Posts

Hi,

 

When I create emails in Outlook using below code they all work without a problem. I'm using Office365, so the latest version of Outlook.

 

However, when that same code is executed on a different PC, and one that uses Outlook 2013, I get 'Server execution failed, ProgID: 'Outlook Application'

 

The start code for the email application is:

    try
      Outlook:= GetActiveOleObject('Outlook.Application');
    except
      Outlook:= CreateOleObject('Outlook.Application');
    end;

 

When I google I get various replies to this issue (some of which are not a solution here), but wondered if any Delphi guys have hit this problem and know of a solution. Maybe a different way to open an Outlook instance?

Share this post


Link to post
4 hours ago, bazzer747 said:

same code is executed on a different PC, and one that uses Outlook 2013, I get 'Server execution failed, ProgID: 'Outlook Application'

On that computer, using RegEdit, search if the key "HKEY_CLASSES_ROOT\Outlook.Application" exists.

There could also be version specific keys such as "HKEY_CLASSES_ROOT\Outlook.Application.16".

 

Share this post


Link to post

Hi,

Sorry it took so long, just been able to get to my client to take a look at his registry.

 

There are 2 entries:

 

Outlook.Application - Microsoft Outlook 15.0 Object Library

and

Outlook.Application 15 - Microsoft Outlook 15.0 Object Library

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×