outlook

How do I format a String in an email so Outlook will print the line breaks?

I'm trying to send an email in Java but when I read the body of the email in Outlook, it's gotten rid of all my linebreaks. I'm putting \n at the ends of the lines but is there something special I need to do other than that? The receivers are always going to be using Outlook. I found a page on microsoft.com that says there's a 'Remove ...

How do I programmatically show or hide the Outlook envelope icon?

For example, how do I show or hide the Outlook envelope icon from an Outlook Rule? The envelope icon option is set by going to: Tools -> Options... E-mail Options Advanced E-mail Options Show an envelope icon in the notification area The reason why I say programmatically is because none of the standard Rule actions apply. (The "Cle...

Outlook attachments.Add() is not showing in mail body

I'm creating a new mail item, in C# VS-2008 outlook 2007, and attaching a file. The first issue is that I don't see an attachment area under the subject line showing the attachment. If I send the e-mail its properties show that there is an attachment and the e-mail size has grown by the attachment amount. I just cannot see it or extra...

Create an EML (E-Mail) File in Java

Anybody knows how to do this? I got all the information of the email (body, subject, from , to, cc, bcc) and need to generate an eml-file out of it. ...

iCalendar Format (Outlook 2007)

I've got a little problem, I need to be able to have a reoccurring event (forever) that marks the day after the second Tuesday of each month. Your probably thinking, why not just Wednesday of each month. October 2008 is an example, it starts on a Wednesday. :( Really I just need it in Outlook, probably (but not limited to) some iCalend...

Unknown Outlook MailItem EntryID

My Outlook add-in handles NewInspector event of the Inspector object, in order to display a custom form for the mail item. I can get EntryID of the CurrentItem of the Inspector object which is passed as a parameter of the event. But, the problem is that the EntryID of the current mail item is shorter than it should be, and is unknown. I...

Extracting Autocomplete Emails from Outlook 2007

Hello, I need to extract all the emails that show up as autocomplete entries in Outlook 2007. I mostly need to create a list of all the email addresses which I have sent emails to in the past and dump them into excel. Should I be connecting to Outlook through COM somehow? Thanks. ...

Release COM Components

Is it really necessary to release COM components from Office PIA, when you don't need them anymore by invoking Marshal.ReleaseComObject(..)? I found various and contradictory advices on this topic on the web. In my opinion, since Outlook PIA is always returning a new references to its interfaces as returning values from its methods, it ...

Trapping textChanged event in CommandBarComboBox

Hello, I'm writing an outlook add-in, which adds a toolbar with a button, and a combobox, of CommandBarComboBox type. As far as I can see, the only event which this control handles, is Change, which is going into effect only after pressing Enter/Tab. I want to handle the key presses as soon as the text changes, much like the the TextCh...

Dynamically add sender email to Message Header rule in Outlook 2007 via right-click

I would like VBA code for Outlook 2007 to right-click a message in any mail view, choose a rule to add it to, and have the sender email be added to the Message Header contains value for that rule. Only particular rules use Message Header as a criteria, so only those applicable rules should show when I right-click a message. ...

CDO: Outlook contact sync - How to identify the correct object to sync with?

I have a web application that syncs Outlook contacts to a database (and back) via CDO. The DB contains every contact only once (at least theoretically, of course doublets happen), providing a single point of change for a contact, regardless of how many users have that particular contact in Outlook (like Interaction or similar products). ...

Outlook PropertyFrom MAPI Schema Property ID

I am looking to get the actual property name from a MAPI schema property. I'm obtaining the MAPI Schema property "http://schemas.microsoft.com/mapi/proptag/0x67AA000B" but I would like to know what field this corresponds to (I.E. Anniversary, BusinessAddress, etc). Any insight would be appreciated. ...

Event on Item Marked as Read in Outlook - Delphi COM Add-in

I have a Delphi COM Add-in for Outlook (2000-2007) and am trying to find a way to register an event when an MailItem in Outlook is marked as read. I want to add an additional property to the item as/just after it is marked as read. Does anyone have any idea how to do this using the Outlook Object Model? I am also using Add-In-Express ...

Creating a Outlook .MSG file in C#

Hello, I've been tasked with writing a outlook .MSG files from XML files that have associated metadata. I've tried using the Aspose library, but all of the exposed MapiMessage properties are read only. Using the Outlook Object Model I'm unable to change the creation date, and other properties that I must have access to. I've also tried ...

How to programmatically update the Outlook contact name resolution order

When in Outlook 2003, open the Address Book, select Tools->Options. You get the Address dialog showing the option "When sending mail, check names using these address lists in the following order:" For most people, this will contain only "Contacts". For corporate networks, it'll probably also contain "Global Address List". The problem...

How to find full path of Outlook .pst file?

Is there a way to programmatically find the location of the current user's Outlook .pst file(s) through an API call or registry entry? ...

Outlook automation - Change Sender Account

I'm automating Outlook and I need to control who the email appears to be from. The users will have two or more Accounts set up in Outlook and I need to be able to select which account to send the email from. Any ideas? Needs to be supported on Outlook 2003 and above. I'm using Delphi 2006 to code this, but that doesn't really matter. ...

Outlook VSTO not firing on NewMailEx event?

I've created a VSTO in C# that is supposed to hook Outlook 2007's NewMailEx event. However, it doesn't fire sometimes when I do a manual send/receive, or when there is only 1 unread mail in the inbox. It almost seems as if it fires on the inbox BEFORE the message actually arrives. Is there a better way of monitoring for new messages eve...

MAPI: Format of PR_SEARCH_KEY

Does anyone know the format of the MAPI property PR_SEARCH_KEY? The online documentation has this to say about it: The search key is formed by concatenating the address type (in uppercase characters), the colon character ':', the e-mail address in canonical form, and the terminating null character. And the exchange docum...

Iterate through properties in outlook using reflection

I want to get a list of all the fields which hold a telephone number using VSTO in outlook I tried using reflection but it didnt appear to work. ...