outlook-object-model

How can I find "People's Contacts" folders via Outlook's object model?

I have some code that locates all the contact folders that a user has access to by iterating through the Application.Session.Stores collection. This works for the user's contacts and also all the public contacts folders. It also finds all the contacts folders in additional mailbox accounts that the user has added via the Tools -> Accoun...

How to access the subject of a compose mail item in Outlook

In Outlook, I can set the subject for a new message (when composing a new mail message), but I want to prepend text. So I need to get the subject first, and then set it. Outlook.Application application = Globals.ThisAddIn.Application; Outlook.Inspector inspector = application.ActiveInspector(); Outlook.MailItem myMailItem = (Outlook.Mai...

How can I add multiple email addresses in Outlook field "To" via C#?

Hi all, Anybody know how can I add multiple email addresses in Outlook field "To" via C#? foreach (var to in mailTo) newMail.To += to + "; "; When I try do it how I described this above I receive next kind of string: [email protected]@[email protected] ...

How can I access an Outlook message using a unique and stable identifier?

Hi, I'm building an application that analyzes Outlook email messages, stores the analyzed information, and later allows the user to open messages meeting certain criteria. I expected that I would extract the Message-ID from each email, store this in my database, and then ask Outlook to open up a message by providing it with the Message...

Applicaion.AdvancedSearch not filtering when run on a Mounted mailbox contacts folder

We are using OL 2003 and are building an addin in which we use Application.AdvancedSearch. We use this API to get filtered contact lists. Works just fine on most machines. On some however, the search result brings back all contacts seemingly ignoring the filter. Its certainly not a code issue - it works fine on most machines. Advanced ...

Get Smtp email from ContactInfo stored in Exchange

Hi, I am using VSTO for my Outlook add-in. Currently I am processing email addresses from all Outlook contacts. There is no problem for instances of ContactInfo if EmailAddress1Type is "SMTP". But how to get email address for Exchange contact (Email1AddressType = "EX")? Redemption library is not solution for me as it is expensive just...

Outlook Appointment Item: Set the "Label"

In Outlook 2003, when you have a calendar event, it has an option to set its Label to Important, Business, Personal, etc, each having a different colour. This colour will be the colour of the scheduled event on your calendar. My problem is I have no idea how to change it using an AppointmentItem. I've looked through the object browser a...

Outlook forms library

Hello All, I want to Find a specific outlook form in the organizationla forms library.. Pleaset tell me which function/class to be used in OOM/MAPI.. Thanks in advance... ...

Inspector.WordEditor is Nothing (Null)

I have an add-in for Outlook 2007 developed with VSTO 3.0 in Visual Studio 2008, written in VB.NET I am listening for NewInspector events and wrapping the Inspector object, then listening for the Activate event where I attempt to grab the WordEditor. The property is always returning null now. This was not happening before, and the only ...

VB.net 2005 Sending Emails With Outlook 2003

We currently use the following code to create an email in Outlook so that the user can type what they want in Outlook, then when the email is sent, the system prompts them to see if they would like to save the email. Dim objOutlook As Object Dim objMessage As Object Dim objInspector As Object ...

outlook object model and active directory address book

Hi all, Is it possible to utilize the Outlook object model to get a list of the Global Address List? I'm mainly interested in the user's Alias. Any resources welcomed. Thanks, rod. ...

Outlook Email Send event raised on Background Thread

I am creating an Outlook Mail Item object and watching for the Send event. All appears well, but when the Send event fires, the event is raised on the background thread of my application. The reason this is a problem is that this event creates a record of the email sent through my application, which is added to a collection of objects. T...

How can I format messages with Perl's Mail::Outlook?

I'd like to format messages that I send using the Mail::Outlook.For e.g. change the font size or make it bold etc. How do I do this? ...

GetUserAvailability from Exchange from a COM Outlook addin.

I have a COM Outlook addin programmed in C++ (VS2005). I'm trying to see if within this addin I can get a random user or resource and see if it is available during a certain meeting time. Basically I'm trying to do something like getuseravailability() from the 2007 Exchange Web Service api listed below. getuseravailability Is this the...

COM Outlook addin ribbon buttons not responding in Korean Outlook 2010

Hi Folks, I have a COM Outlook addin which implements a ribbon button in Outlook 2010. It's been working just fine for quite some time. Until someone tried to load the addin in the Korean version of Outlook. The ribbon buttons show up but do not do anything when clicked. In the debugger, I see the error message below whenever I click on...