Attachments not moving in body

S

Sponge Dan

Hello,

I have an addin for Office 2003 that modifes a message body on send. It
prepends and appends some information to the body. That works fine, but
only when there are no attachments. When I have attachments in the message,
and the message is in RTF format, I have problems... the attachment doesn't
move, so this:

hello,
sample >attachment here< message
bye

becomes:

prepended infor>attachment now here<ation
hello,
sample message
bye
appended information


How I'm modifying the body is using the htmlbody property on the mailitem to
get the rtf body in html format, modifying it and storing it back into the
htmlbody property.

I've tried adjusting the position of the attachment by the length of the
header, but funny things happen on a forward... the attachment won't move
anymore.

Has anyone had success modifying an RTF body with attachments?

Thanks!
Dan
 

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