Error send outlook mail message

I got an error when sending email activity:

Send Outlook Mail Message: Unable to cast COM object of type ‘System.__ComObject’ to interface type ‘Microsoft.Office.Interop.Outlook.Application’. This operation failed because the QueryInterface call on the COM component for the interface with IID ‘{00063001-0000-0000-C000-000000000046}’ failed due to the following error: Interface not registered (0x80040155).

I have checked the posts related to this error but unfortunately nothing help.

Hey @zur_AM
Hi, have you checked these threads on the forum?

Hi,

I have read all these posts, but nothing works for me.
I am using outlook M365 so I’m not sure Do I need the “classic” outlook for the activity?

Hi @zur_AM

Are you able to please show us the configuration of your mail activity?

Check few think
1.Check that the Outlook desktop application is properly installed and licensed, as the UiPath activity cannot work with the web or store versions

2.Restart your Outlook and UiPath Studio. In some cases, closing and reopening both applications can clear up COM registration issues

3.Uninstall and reinstall the UiPath.Mail.Activities package using the Manage Packages feature within UiPath Studio. After reinstalling, restart Studio.

4.Try repairing your Microsoft Office installation. Go to “Programs and Features,” select your Office install, choose “Modify,” then “Repair Online.” This often restores missing or broken registry settings related to Outlook COM interop