---
title: "How can I open outlook message window in wpf?"  
description: "How can I open outlook message window in wpf?"  
author: "Anonymous User"  
published: 2013-08-19  
updated: 2013-08-19  
canonical: https://www.mindstick.com/forum/1413/how-can-i-open-outlook-message-window-in-wpf  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# How can I open outlook message window in wpf?

Hi!

I have a [wpf](https://www.mindstick.com/forum/304/wpf) [application](https://www.mindstick.com/articles/12824/calculator-application-in-android) and I'd like it to use [Outlook](https://www.mindstick.com/blog/135055/how-to-change-your-account-password-in-outlook-com-toll-free-number-1-844-832-5538) to send [messages](https://www.mindstick.com/news/4166/google-rolling-out-gemini-extensions-for-messages-whatsapp-and-spotify) any [user](https://www.mindstick.com/articles/13001/multi-statement-table-valued-user-defined-function-in-sql-server).

I don't want to send them programmatically though; I just want to open

The New [Message](https://www.mindstick.com/forum/12802/show-confirmation-message-yes-or-no-in-asp-dot-net) [window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript), set the recipients and leave it there for the

User to finish [filling](https://yourviews.mindstick.com/audio/1303/the-power-of-silence-what-happens-when-you-stop-filling-every-moment) out.

What classes am I looking for?

please help me thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by shreesh chandra shukla

Hi!

You can firstly add reference to the Outlook Interop and after that write below line of code where you want to open a Outlook message window in wpf.

```
Microsoft.Office.Interop.Outlook.Application outlookApp = new Microsoft.Office.Interop.Outlook.Application();            Microsoft.Office.Interop.Outlook.MailItem message =            (Microsoft.Office.Interop.Outlook.MailItem)outlookApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem);            message.Subject = "Testing Mail!";            message.Recipients.Add("some@email.com");            message.Body = "Hello. This is body area, write your mail here.";            //int attachmentLocation = 1;            //message.Attachments.Add(fileName, Outlook.OlAttachmentType.olByValue,attachmentLocation, displayName);            message.Display(false);
```

thanks.


---

Original Source: https://www.mindstick.com/forum/1413/how-can-i-open-outlook-message-window-in-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
