mapi and outlook events.

L

lloyd christopher

ive been trying to make an outlook add-in that to insert an html footer on
each of my email. using ItemsCB / htmlimg examples i have successfully got
it working inserting embedded images with microsoft word as an editor if i
create the object myself (golApp.CreateItem(olMailItem) etc) clicking on a
command bar etc, but what i really want is to do it using the normal
commandbar buttons for "new message" and more importantly for reply /
reply-to all / forward. open / read / close / send events I haven't had any
luck with as they are always pre-writing the message. I can get the entryID
and get the MAPI.Message object for it, do whatever i like to it
successfully, but there is no way to "merge" it back in from what i can
tell. i also tried having newly opened messages create their own new
modified mailitem but this was very slow, ugly, and error prone (lots of
problems with event loops when new inspector is fired by the
createitem(olMailItem). Just need some way to get the message *after* its
written to the outbox, drafts or wherever and I'd be set, but I'm missing
something and completely stumped. thanks as always.

lloyd christopher
SLOW30
 

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