populating the body of an email

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
 
D

Dmitry Streblechenko \(MVP\)

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
 
G

Gargamil

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
 
D

Dmitry Streblechenko \(MVP\)

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
 

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