populating the body of an email

  • Thread starter Thread starter Gargamil
  • Start date Start date
G

Gargamil

I have an application in which I create a data file and then attach it to an
email before sending it off to the client. now it all works great with the
exception that when i populate the body of the email the html signature is
splattered back to just the text of the html file, thereby losing all the
required formatting.

Bascially i'm doing it as
.body = text & .body

I've tried using both the .body and .htmlbody tags but am at a loss how to
add the body text i need and retain the signature file i'd like. Any clues
from you brainiacs???

g
 
See my reply in the "Message format, body property and appending" thread in
the *.outlook.addins newsgroup.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Dmitry,
my isp randomly filters the newsgroups. Whilst i found the message you
mention I could not see any reply from yourself or others. could you repost
it here in its entirity??

g
 
Here it is:
-------------------------
In general, you will need to either access the HTMLBody property, load the
HTML into an IHTMLDocument2 object (see walkall sample on MSDN) or use
MailItem.GetInspector.HTMLEditor (which returns IHTMLDocument2 object), then
add the signature using the DOM.
In case of the Word editor, use MailItem.GetInspector.WordEditor, then use
the Word Object Model to modify the body.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top