Group:  Microsoft Outlook ยป microsoft.public.outlook.interop
Thread: Problem with signature when creating new email

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Problem with signature when creating new email
"John" <John[ at ]nospam.infovis.co.uk> 21.09.2006 12:49:33
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


Re: Problem with signature when creating new email
"Dmitry Streblechenko" <dmitry[ at ]dimastr.com> 21.09.2006 16:57:19
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

"John" <John[ at ]nospam.infovis.co.uk> wrote in message
news:OHqXjxX3GHA.1252[ at ]TK2MSFTNGP04.phx.gbl...
[Quoted Text]
> 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
>
>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net