Unable to send mail using "Send Outlook Mail Message" Activity

I am unable to send mail using “Send Outlook Mail Message” Activity , simple i am using To,Subject and Body and when i run my code i got below mentioned error.

Please help me on this

Source: Send Outlook Mail Message

Message: Unable to cast COM object of type ‘Microsoft.Office.Interop.Outlook.ApplicationClass’ 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).

Exception Type: InvalidCastException

System.InvalidCastException: Unable to cast COM object of type ‘Microsoft.Office.Interop.Outlook.ApplicationClass’ 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: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY)).
at UiPath.Mail.Activities.SendMailActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Try to uninstall and install the package again of uipath.mail,activities .

Have you downgraded your Microsoft office version for example from Office 2016 to Office 2013 or so even not then might be give it a try to-

Try to “repair” your Microsoft Office installation. Go to Programs and Features, select Modify and then Repair Online

Regards…!!
Aksh

1 Like

did it ,multiple times
even i have reinstall Office and UIPath studio also but same error

share the workflow.

unable to upload, Got message “new user can’t upload”

share screenshot of the workflow with extra screenshot of properties .

You are giving the address of gmail.com , give the address of outlook mail that is why the error is coming. For gmail use send SMTP Mail message.

i have tried both.
same mail id which is i am using my outlook

yes i have repaired Office, don’t have 2013 so unable to downgrade

was any solution found for the above ?

any solution found you for send out look mail?

Yes, Just kill Outlook in task manager and reopen and its was working fine