Question : C# Outlook Add-in to add signature dynamically on reply / forward

Hi,

I am trying to create an add-in in C# that I can use to add a signature (or just some text) to the top of an email on forward and reply. I do not want to use a signature file as I want to generate the content on-the-fly. So far I have hooked into the NewInspector event, which is fired when I need it. I have then tried adding my additional text to the HTMLBody of the MailItem, but get the error -  "Attempted to read or write protected memory. This is often an indication that other memory is corrupt.".

Any ideas on how I can achieve what I want? I am open to new suggestions as this is really a proof of concept at present.

Many thanks,

BoiledOnion.

Answer : C# Outlook Add-in to add signature dynamically on reply / forward

yes, word is the editor

why?
if you modify the message body by the object, you lose all style/format

that's why i use word editor, beside, in outlook 2007, the word editor is built in (if word 2007 is installed)
Random Solutions  
 
programming4us programming4us