New Outlook 2024 do not create "email drafts" as it use to create before in classic version

Narayan PD 0 Reputation points
2024-12-18T13:47:51.6133333+00:00

This Delphi code use to work before switching to new 2024 outlook version:

try

OutlookApp := GetActiveOleObject('Outlook.Application');

except

OutlookApp := CreateOleObject('Outlook.Application');

end;

try

MailItem := OutlookApp.CreateItem(olMailItem);

MailItem.Subject := 'Email Subject Here..';

MailItem.Body := 'Email Body Here..';

_emailAddress := '*** Email address is removed for privacy ***';

MailItem.Recipients.Add(_emailAddress);

MailItem.Display();

finally

OutlookApp := VarNull;

end;

Now after switching it fails to load and does not show the draft. Error Message Shown is : 'Server execution failed, ProgID: "Outlook.Application"'.

When I switch back to classic version, it shows draft email without any issue. Image Basically we want Email Draft to be created when a button is clicked from UI.

How can we fix this issue in latest version of new outlook?

Outlook
Outlook
A family of Microsoft email and calendar products.
4,218 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
4,101 questions
Outlook Management
Outlook Management
Outlook: A family of Microsoft email and calendar products.Management: The act or process of organizing, handling, directing or controlling something.
5,363 questions
{count} votes

1 answer

Sort by: Most helpful
  1. simo-k 1,350 Reputation points
    2024-12-18T15:18:13.69+00:00

    What is the application type, version, and build?

    Is it the classic Outlook (Outlook 2024)?
    Is it the new Outlook?

    If it is the new Outlook, only web add-ins are supported.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.