---
title: "OutLook API Failure Message how to get in C#"  
description: "OutLook API Failure Message how to get in C#"  
author: "sachin ms"  
published: 2017-08-20  
updated: 2017-08-20  
canonical: https://www.mindstick.com/forum/34327/outlook-api-failure-message-how-to-get-in-c-sharp  
category: "c#"  
tags: ["object oriented analysis"]  
reading_time: 1 minute  

---

# OutLook API Failure Message how to get in C#

I am doing some [automation](https://www.mindstick.com/articles/311680/what-are-the-pros-and-cons-of-automation-in-factories) on [outlook](https://www.mindstick.com/blog/135055/how-to-change-your-account-password-in-outlook-com-toll-free-number-1-844-832-5538) mail box, previously it was lotus notes.So i [am looking](https://answers.mindstick.com/qa/115463/i-am-looking-for-to-joining-the-mindstick-internship-program-how-to-apply) for equivalent [properties](https://www.mindstick.com/articles/23331/nootropics-7-different-types-and-their-unique-properties) in outlook. The lotus notes mail items has a [item](https://www.ibm.com/support/knowledgecenter/SSVRGU_9.0.0/com.ibm.designer.domino.main.doc/H_ITEMS_PROPERTY.html) named FAILUREREASONwhich has the details about why the email is failed such as [delivery](https://www.mindstick.com/articles/12817/how-to-ensure-swift-product-deliveries-through-delivery-date-extensions) failure reason etc. This item will be available when the mail is a delivery failure email. So when i loop through mails in inbox i can recognize which mail is a delivery failure email in inbox and which is actual [required](https://www.mindstick.com/forum/160269/what-is-required-data-annotation-how-does-it-affect-model-validation) mail to be processed. But in outlook [MailItem](https://msdn.microsoft.com/en-us/library/microsoft.office.interop.outlook.mailitem_properties.aspx) object i didn't find any option to get it. I searched for any solutuion but not able to find any. We can search subject for words such as 'failure' but it's not good [approach](https://www.mindstick.com/interview/985/what-are-the-approaches-that-you-will-follow-for-making-a-program-very-efficient). Can anyone know the [property](https://www.mindstick.com/blog/205/property-notification-in-c-sharp) that i need to look or any other approach for the same.


---

Original Source: https://www.mindstick.com/forum/34327/outlook-api-failure-message-how-to-get-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
