# Outlook send Mail Error

**URL:** <https://forum.uipath.com/t/outlook-send-mail-error/572018>\
**Category:** Studio\
**Tags:** mail, activities\
**Created:** [August 11, 2023, 6:43am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018 "2023-08-11T06:43:47Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 6:43am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/1 "2023-08-11T06:43:47Z")

</div>

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: Interface not registered (Exception from HRESULT: 0x80040155).

I try many method to solve it, but all of them are failure: run office repair tool in unipath / uninstall office and re-start the computer, then install office again. Please help to advice how to solve this problem, thanks.

---

<div class="post-metadata">

**Author:** ![mkankatala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mkankatala/32/484097_2.png) [@mkankatala](https://forum.uipath.com/u/mkankatala)\
**Post date:** [August 11, 2023, 6:45am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/2 "2023-08-11T06:45:55Z")

</div>

Hi @alison.guo

Confirm that outlook application is installed in your local computer.  
If not installed do install the outlook application. If you are using outlook activities the outlook application has to be installed in machine.

Hope it helps!!

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 11, 2023, 6:46am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/3 "2023-08-11T06:46:44Z")

</div>

Hi @alison.guo ,  
check open outlook in your PC  
regards,  
LNV

---

<div class="post-metadata">

**Author:** ![lrtetala](https://avatars.discourse-cdn.com/v4/letter/l/e19b73/32.png) [@lrtetala](https://forum.uipath.com/u/lrtetala)\
**Post date:** [August 11, 2023, 6:48am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/4 "2023-08-11T06:48:14Z")

</div>

Hi @alison.guo

Please check on this

> [@Unable to cast COM object of type 'Microsoft.Office.Interop.Outlook.ApplicationClass'](https://forum.uipath.com/t/unable-to-cast-com-object-of-type-microsoft-office-interop-outlook-applicationclass/33419/4):
>
> i just repaired my office and it worked…

> [@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](https://forum.uipath.com/t/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/502909):
>
> Send Outlook Mail Message activity is not working and get the following error " 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: Library not registered." Root Cause: The issue is caused by a wrong registry file, this …

---

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 6:55am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/5 "2023-08-11T06:55:34Z")

</div>

I have repaired office and the registry file looks like fine, only 9.6 key under HKEY\_CLASSES\_ROOT\TypeLib{00062FFF-0000-0000-C000-000000000046}. but the problem still is happened.

---

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 6:56am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/6 "2023-08-11T06:56:00Z")

</div>

no, the error still is happened.

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 11, 2023, 6:57am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/7 "2023-08-11T06:57:05Z")

</div>

can you share image about that error?

---

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 6:57am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/8 "2023-08-11T06:57:51Z")

</div>

i have re-installed office, and outlook activity is install in UiPath, but same error is happened.

---

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 7:00am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/9 "2023-08-11T07:00:59Z")

</div>

![mail error](https://global.discourse-cdn.com/uipath/original/4X/0/e/6/0e64a7512c20aee879bc279e2c5f2020ef538f9a.jpeg)  
23.6.1-beta.13324+Branch.release-v23.6.1.Sha.52787b786620e97cba5555379da6e6bb423b3e6b

Source: 生成邮件

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: Interface not registered (Exception from HRESULT: 0x80040155).

Exception Type: System.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: Interface not registered (Exception from HRESULT: 0x80040155). at System.StubHelpers.StubHelpers.GetCOMIPFromRCW(Object objSrc, IntPtr pCPCMD, IntPtr& ppTarget, Boolean& pfNeedsRelease)  
at Microsoft.Office.Interop.Outlook.ApplicationClass.get\_Version()  
at UiPath.Mail.OutlookAPI.InitOutlook()  
at UiPath.Mail.OutlookAPI.SendMailInternal(MailMessage mailMessage, String account, String sentOnBehalfOfName, String to, String cc, String bcc, List`1 attachments, Boolean isDraft, Action`1 SetBody)  
at UiPath.Mail.OutlookAPI.SendMail(MailMessage mailMessage, String account, String sentOnBehalfOfName, String to, String cc, String bcc, List`1 attachments, Boolean isDraft, Boolean isBodyHtml)  
at UiPath.Mail.Outlook.Activities.SendOutlookMail.\<\>c\_\_DisplayClass32\_0.b\_\_0()  
at System.Threading.Tasks.Task.InnerInvoke()  
at System.Threading.Tasks.Task.Execute()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)  
at UiPath.Mail.Outlook.Activities.SendOutlookMail.d\_\_32.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Mail.Activities.Extensions.TaskExtensions.d\_\_2.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)  
at UiPath.Mail.Activities.SendMailActivity.d\_\_43.MoveNext()  
— End of stack trace from previous location where exception was thrown —  
at UiPath.Shared.Activities.AsyncTaskCodeActivityImplementation.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)  
at UiPath.Shared.Activities.AsyncTaskCodeActivity.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)

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 11, 2023, 7:02am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/10 "2023-08-11T07:02:18Z")

</div>

I see your error  
you can check

 ![image](https://global.discourse-cdn.com/uipath/original/4X/1/4/f/14f2f45c318fd95fdc28cd76f5e87c0006788374.png)  
update newest ver  
then try again  
regards

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 11, 2023, 7:06am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/11 "2023-08-11T07:06:21Z")

</div>

Hi @alison.guo ,  
You can check

> [@Issue with office 2016 64bits](https://forum.uipath.com/t/issue-with-office-2016-64bits/1890):
>
> Hello, I’ve been trying to update my office to 2016. I have installed 2010 (for other reasons) and the 2013 worked fine… but when I update the office throws me this error. 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:…

you can erase from the registry the key  
00063001-0000-0000-C000-000000000046  
now it is just saying that  
Send Outlook Mail Message : Object reference not set to an instance of an object.  
regards.

---

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 7:09am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/12 "2023-08-11T07:09:59Z")

</div>

unfortunately, error still happened. For your information, the process is run normally before. I do not change anything, but it is not work from this week.

 ![mail error](https://global.discourse-cdn.com/uipath/original/4X/e/f/3/ef357a575c839c3ede6fdf66fcffa99b3a12c8ce.jpeg)

---

<div class="post-metadata">

**Author:** ![Nguyen\_Van\_Luong1](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/nguyen_van_luong1/32/442389_2.png) [@Nguyen\_Van\_Luong1](https://forum.uipath.com/u/Nguyen_Van_Luong1)\
**Post date:** [August 11, 2023, 7:11am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/13 "2023-08-11T07:11:39Z")

</div>

Oh, you can check that

> [@Outlook send Mail Error](https://forum.uipath.com/t/outlook-send-mail-error/572018/11):
>
> Hi @alison.guo , You can check [https://forum.uipath.com/t/issue-with-office-2016-64bits/1890?u=nguyen\_van\_luong1](https://forum.uipath.com/t/issue-with-office-2016-64bits/1890) you can erase from the registry the key 00063001-0000-0000-C000-000000000046 now it is just saying that Send Outlook Mail Message : Object reference not set to an instance of an object. regards.

---

<div class="post-metadata">

**Author:** ![alison.guo](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/alison.guo/32/263147_2.png) [@alison.guo](https://forum.uipath.com/u/alison.guo)\
**Post date:** [August 11, 2023, 7:23am UTC](https://forum.uipath.com/t/outlook-send-mail-error/572018/14 "2023-08-11T07:23:27Z")

</div>

it is not worked, thanks.
