outlook

Customizing Outlook and Exchange to add new fields to meetings + querying from Exchange from custom app, is this possible ?

Hi, Is it possible to customize the window used in Outlook to type in meetings (calendar tab) to add new fields to it ? That data would be stored in Exchange, then queried by another app that would do something with it. My problem is to see how I could affect the meeting edit dialog as it is now, to add my new fields. Any ideas ? ...

Launching email application (MAPI) from C# (with attachment)

In the past I have used MAPISendMail to launch Outlook (or whatever the desired MAPI email application was) from a C++ application with a file attachment. (Similar to say Microsoft Word's Send Email functionality). I need to do the equivalent from a C# application and to have it work when running on XP, Vista, Server 2008 (and Windows 7...

Outlook - check email address type

I am trying to make a macro in Outlook that will scan the To: list for a certain text string, and spit out a message if all but one (or two, etc) addresses have it. Is there a simple way to do this? Essentially, I am trying to write something that'll avoid being able to send a restricted message to a bunch of people with the string 'xyz...

vCalendar - show as (Free/Busy/Tentative/Out of Office)

I sent a vCalendar message to Outlook which results in a new Event in Outlook Calendar. How to set "Show As" field? (Free/Busy/Tentative/Out of Office) ...

Where is Outlook's save FileDialog?

I'm working on an Outlook add-in that requires the Office specific FileDialog to interoperate with a Sharepoint site; the common file dialog doesn't have the interoperability. I know that both Word and Excel have a get_fileDialog method under Globals.ThisAddIn.Application.Application, but Outlook doesn't seem to. How do I launch an Outlo...

OL Addin and VMWare

We have a managed COM addin for Outlook works flawlessly on a real machine now using VMWare 6.05 I think whe we try and install our addin OL refuses to load us and we keeo seeing a message( when we go to the manage addins dialog) saying a runtime error occurred when loading the COM component Nothing on event viewer We are seeing this...

Getting embedded messages from an Outlook MSG imported with CreateItemFromTemplate

I'm attempting to get all attachments, including both embedded messages and attached regular files, to MSG files. I can create a MailItem from a file by calling CreateItemFromTemplate, but what I've seen is that the resulting MailItem's Attachments property appears to only contain attachments that are not embedded messages -- if I open ...

How can I program Excel to Work with Outlook?

I have a fairly large Excel file. In this file there is a column with dates. I would like to know if/how it would be possible to make a program that would be able to read the date and post a notice 30 days in advance to Outlook Calendar or send out an email through Outlook in my office. Is there a decent API that I could use for this?...

Access text currently selected in outlook 2007.

I'd like to create C# outlook addin to automate a process of adding mail fragments as comments in my bug tracking system (Jira). To create the comment I need to extract currently selected text. I manage to do that in a tricky way for email window (following this article). But I didn't find any way to access the current selection in the ...

Search Outlook Contact using COM?

I want to add support for searching for local Outlook contacts to my ATL/WTL app. Does anyone know of the Outlook COM interface (Office 2003 or greater) allows you to search for contacts? I already have LDAP lookup support but users want to be able to search their private contacts as well. Any information would be welcome. ...

Tracking e-mails in outlook with excel

How do I track e-mails in and out of a shared in-box in Outlook using excel? We have a large number of e-mails coming in and we need to track responses to make sure that e-mails don't get lost. Is there as way to get the results from advanced find to an excel sheet? ...

Outlook alias and System.Net.Mail

Is it possible to resolve a users Outlook Alias to a valid SMTP email address using System.Net.Mail? I know it can be done with Outlook automation but I am trying not to use it as Outlook 2007 has spam filter protection that require user interaction. ...

Outlook 2007 add-in - What event occurs when an user moves an email from a folder to another one?

Hey, I am writing an Outlook 2007 add-in. I would like to know what event occurs when user moves an email from a folder to another one (with drag and drop or with move to folder option). My application represents a spam filter, I have a Spam folder, and I need to know whenever user moves an email form inbox to spam or form spam to inbo...

VSTO - Outlook event handler in C#

I have a need to display a custom form instead of the default inspector form for an outlook appointment item. I want to do this in C#. There's a good tutorial on devx but it's using VB, and I want to use C#. So I've translated the code to C# and I'm having a problem where I need to override the Open event handler for the AppointmentI...

Using custom form in Outlook when creating a new mail message

I want to create a custom form in Outlook 2007 and then have that form be the form that comes up when the user clicks New / Mail Message in the toolbar. Is there a way to do that? I know how to create the custom form, but I don't know how to change what the menu item does. Jon ...

editing/viewing a Microsoft Outlook NK2 name cache file

I am trying to find some code which shows how one might open an Outlook NK2 names cache file. I did some searching and I have seen several people say that it's not possible, but then I find links to some freeware that can do just this so I know its possible. I would use the freeware applications, but would rather do it in my own code, ...

SMTP Headers in VB.Net without Redemption

I'm writing a mail component for a VB.Net app, and need to handle mails differently that are "Sent on Behalf" of someone. Although the Outlook Object Model exposes "SentOnBehalfOfName", it doesn't expose the email address for that party. Supposedly it's in the "OtherHeaders" field of the SMTP header, but I don't see an easy way to get ...

Outlook 2007 add-in - Problem using BeforeItemMove event

Hey, I am writing an Outlook 2007 addin. All I am doing is: private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.Folder root; //creates Spam folder if it dosen't exist if (!SpamFolderExist()) { CreateSpamFolder(); } root = (Outlook.Folder)t...

Outlook 2007 MailItem Info - slow

I'm trying to parse through e-mails in Outlook 2007. I need to streamline it as fast as possible and seem to be having some trouble. Basically it's: foreach( Folder fld in outllookApp.Session.Folders ) { foreach( MailItem mailItem in fld ) { string body = mailItem.Body; } } and for 5000 e-mails, this takes over...

Single vcal for booking on multiple day.

I has a list of date time without following any pattern and want to genrate a single vcal for book schedule in MS-Outlook for these dates. Is it possible and how ? Please suggest. ...