Add content to mailbody

A

Andre Maas

Hey,

i am writing a little application that add some needed information to
the mailbody.

So if i select an mail, i add some new information to the original body.
If i select another mail the prev mail should to be stored without the
infos i add. But WHY???

Is it possible to modify the body ONLY in/for the mailpreview mode?

Thx
Andre
 
S

Sue Mosher [MVP-Outlook]

Is it possible to modify the body ONLY in/for the mailpreview mode?

Outlook displays in the reading pane the data that is stored in the item. In your scenario, you would have to add the data, save the item, then remove the data when the item is no longer displayed.
 
A

Andre Maas

Hey Sue,

thanks for help.

That is the way i resolved my problem. i store the orginal body in a
variable and if the item is not longer displayed i put the 'old' body
back to the item and saved it.

is there any good idea to solve it high performant?

Regards
André
 
S

Sue Mosher [MVP-Outlook]

is there any good idea to solve it high performant?

None that I can think of. I doubt that constantly altering the content of existing messages is a task Outlook was designed to handle.
 
A

Andre Maas

Hey Sue,

thanks for help.

That is the way i resolved my problem. i store the orginal body in a
variable and if the item is not longer displayed i put the 'old' body
back to the item and saved it.

is there any good idea to solve it high performant?!

Regards
André
 

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