Thread: Attachments
View Single Post
  #2  
Old May 19th 08, 10:09 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Attachments

Probably the attachments are embedded in the item and by changing Body you
are overwriting the original attachment references in the original html. If
you are preserving the original html when you change HTMLBody that would
explain that.

Show the code where you add a new attachment.

--
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


"Richard" wrote in message
...
I am new to outlook add-in programming and am having a variety of problems.
Today it's existing attachments. I am trapping the Send event and trying
to
process attachments on the message item. In this case a message with
attachments is being forwarded. I find that:
1) if I change the message body property, the attachments are deleted. If
I
change the bodyhtml property, the attachments remain.

2) if I add a new attachment, the existing attachments are deleted.

I expected the existing attachments to be retained when I add a new one
and
did not expect changing the body property to affect the attachments.

Any help or pointers to documentation discussing these issues would be
appreciated!


Ads