Problem with signature when creating new email

J

John

Hi

I am creating email via code from access using below;

objOutlookMsg.Display
objOutlookMsg.BodyFormat = olFormatHTML
objOutlookMsg.Body = "Dear abc..." & objOutlookMsg.Body

The email displays fine along with the signature set in outlook but as soon
as the text is added, the signature formatting is lost and the signature
image is replaced with a hyperlink. How can I preserve the signature
formatting while adding text before it?

Thanks

Regards
 
D

Dmitry Streblechenko

Set the HTMLBody property instead of Body.
Keep in mind that HTML strings (unlike plain text) cannot be simply
concatenated.

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