image icon in mail item

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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 :)
 
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.
 
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.
 
Back
Top