Ken Slovak - [MVP - Outlook] skrev:
Try saving the Outlook MailItem before assigning it to a SafeMailItem and
see if that helps.
Saving it .. OK, will see if there's a function for that, or could you
explain what I would need to do? (Save it as a draft, or?)
Why are you replacing a tag BODY ? Do you mean to replace all the text
between the start and end tags for body?
I want to insert my pre-defined mail in the body, before the signature.
Open a new mail item with a signature block in it and save the new blank
message. Use a MAPI viewer such as OutlookSpy (www.dimastr.com) to look at
IMessage and then PR_HTML (or use code to access HTMLBody in the VBA project
and OK the security warning) and see what the HTML actually looks like.
PR_HTML .. Could I possibly use the GetHRProp (or what its called, I
haven't got the code in front of me right now), to get the HTML body?
I have seen what the HTML looks like with the signature in it .. If i
output (msgbox) the contents of HTMLBody after I have displayed the new
MailItem, I can get the HTML code out fine (by accepting the security
warning)
The problem is not the formatting of the mailbody, but actually getting
to the mailbody at all.
Is it possible to get the default signature via an addin?
/Peter