# Getting COM error while using Send Outlook Desktop Mail Message

**URL:** <https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213>\
**Category:** Activities\
**Tags:** studio, mail, activities\
**Created:** [June 8, 2026, 6:54am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213 "2026-06-08T06:54:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivek.srivastava](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek.srivastava/32/559480_2.png) [@vivek.srivastava](https://forum.uipath.com/u/vivek.srivastava)\
**Post date:** [June 8, 2026, 6:54am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/1 "2026-06-08T06:54:50Z")

</div>

Hi ,

I trying to send an email using Send Outlook Desktop Mail Message activity with attachment but getting error “System.InvalidCastException: 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: Element not found. (0x8002802B (TYPE\_E\_ELEMENTNOTFOUND)).”

---

<div class="post-metadata">

**Author:** ![yedukondaluaregala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yedukondaluaregala/32/557780_2.png) [@yedukondaluaregala](https://forum.uipath.com/u/yedukondaluaregala)\
**Post date:** [June 8, 2026, 7:00am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/2 "2026-06-08T07:00:58Z")

</div>

Hi @vivek.srivastava ,

Please refer the below topic, follow the steps what they mentioned and see if it works,

> [@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 …

If you find this helpful, please mark it as solution.  
Happy Automation

---

<div class="post-metadata">

**Author:** ![vivek.srivastava](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek.srivastava/32/559480_2.png) [@vivek.srivastava](https://forum.uipath.com/u/vivek.srivastava)\
**Post date:** [June 8, 2026, 7:11am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/3 "2026-06-08T07:11:44Z")

</div>

@yedukondaluaregala i am using office 365

---

<div class="post-metadata">

**Author:** ![yedukondaluaregala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/yedukondaluaregala/32/557780_2.png) [@yedukondaluaregala](https://forum.uipath.com/u/yedukondaluaregala)\
**Post date:** [June 8, 2026, 7:26am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/4 "2026-06-08T07:26:06Z")

</div>

@vivek.srivastava

Can you try by reparing the micorsoft office, find the below screesnshot and follow the documenation as well,

 ![image](https://global.discourse-cdn.com/uipath/original/4X/8/7/b/87b05e8e64df8667306664d41b1f341f9aa5acea.png)

> **[Studio - Microsoft Office issues](https://docs.uipath.com/studio/standalone/2023.4/user-guide/microsoft-office-interop-issues)**
>
> The UiPath Documentation - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business examples...

> <https://stackoverflow.com/questions/67886036/uipath-send-outlook-mail-unable-to-cast-com-object>

Happy Automation

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [June 8, 2026, 8:15am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/5 "2026-06-08T08:15:35Z")

</div>

@vivek.srivastava

Can you show a screenshot of your activities

Looks like combination of 365 activities you are using are wrong

Cheers

---

<div class="post-metadata">

**Author:** ![prashant1603765](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/prashant1603765/32/523412_2.png) [@prashant1603765](https://forum.uipath.com/u/prashant1603765)\
**Post date:** [June 8, 2026, 10:02am UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/6 "2026-06-08T10:02:58Z")

</div>

Hi @vivek.srivastava

Try to close or kill outlook process, open and configure profile, repair Office 365, ensure same 32/64 bit.

pls use Send Outlook Mail Message (Modern) to avoid COM dependency.

Happy Automation

---

<div class="post-metadata">

**Author:** ![vivek.srivastava](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vivek.srivastava/32/559480_2.png) [@vivek.srivastava](https://forum.uipath.com/u/vivek.srivastava)\
**Post date:** [June 8, 2026, 4:40pm UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/7 "2026-06-08T16:40:09Z")

</div>

Thanks @yedukondaluaregala now i am able to sent mail using outlook desktop mail activity

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [June 11, 2026, 4:40pm UTC](https://forum.uipath.com/t/getting-com-error-while-using-send-outlook-desktop-mail-message/5752213/8 "2026-06-11T16:40:41Z")

</div>

Closed on June 11, 2026, 4:40pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
