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