image icon in mail item

R

rakesh agarwal

Hi All

I am building an application which reads the contents of the mail . I
made it success fully .

I have a problem when the mail is successfully read i want to change the
mail icon ( envelop image ) to a image which is in my system

Is it possible to do ?

REgards
Rakesh Agarwal

searching for this answer :)
 
T

T-rev

There are a couple of ways to do this, but the easiest would be to implement
your own application class for mails. Like a form.
Eg. have a form with your new icon in it as default icon, then when you read
the contents change the messageClass on that item to be your new form
messageClass.
Ie. IPM.Note.MyForm
It will now appear with your icon - this is the easiest way to achieve this.
 
K

Ken Slovak - [MVP - Outlook]

Of course that modifies the MessageClass of the item but it is the only way
in Outlook 2003 or earlier to do it without using a lower level API such as
CDO or Extended MAPI or Redemption. In Outlook 2007 it can be done using the
PropertyAccessor object.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top