View Single Post
  #5  
Old February 24th 09, 03:34 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default mailItem.HTMLBody should retrieve only current text

You will have to do what I said, any code I have for something like that is
so customized for specific clients it wouldn't do you much good. Find the
original text within the body /body tags and the new text in the reply
message and find where the new text was added to the old text. You might
also have to parse the text to remove any existing signatures if they are
present in the text.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Nagaraj" wrote in message
...
Thank you Ken for your reply.

My actual requirement is I already have some message replied to me.
Whenever
I reply back to him I want to display (company signature) immediately
after
new text which i reply to him.

But what is happening is the signature is displayed after entire text
(current text and previous message).

My current code
mailItem.HTMLBody = mailItem.HTMLBody + adContent.text;

where adContent.text is the company signature.

My requirement is i want to display company signature immediately after my
reply text but not at end of entire message( current + previous messages).
Do
you have any C# code to do this?

Thanks
is

--
Nagaraj Tadipatri


Ads