PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Generating emails with formatting.

Reply

Generating emails with formatting.

 
Thread Tools Rate Thread
Old 11-08-2004, 09:59 AM   #1
=?Utf-8?B?RGF2aWQgQ2xlYXZl?=
Guest
 
Posts: n/a
Default Generating emails with formatting.


Hi all

I have some code which creates an email and fills it in with some standard
text. At present, the code does not allow me to include formatting within the
body of the email (e.g. to have paragraphs or sentences which are different
in colour, bold italic etc).

It would be very useful if I could specify formatting. At the moment I am
using the following code to create the email:

Dim Out As Object
Set Out = CreateObject("Outlook.Application")
Dim Email As Object
Set Email = Out.CreateItem(olMailItem)

And specifying the text for the email body in the .Body property.

Is there a different way to do this which will allow me to specify
formatting, for example, using html?

Thanks in advance for your help

David Cleave

  Reply With Quote
Old 11-08-2004, 10:46 AM   #2
Michael Bauer
Guest
 
Posts: n/a
Default Re: Generating emails with formatting.

Hi David,

> Is there a different way to do this which will allow me to specify
> formatting, for example, using html?


instead of the Body- use the HTMLBody-Property.

--
Viele Grüße
Michael Bauer

  Reply With Quote
Old 11-08-2004, 11:05 AM   #3
=?Utf-8?B?RGF2aWQgQ2xlYXZl?=
Guest
 
Posts: n/a
Default Re: Generating emails with formatting.

Thank you Michael. I hadn't noticed the HTMLBody property before.

David

"Michael Bauer" wrote:

> Hi David,
>
> > Is there a different way to do this which will allow me to specify
> > formatting, for example, using html?

>
> instead of the Body- use the HTMLBody-Property.
>
> --
> Viele Grüße
> Michael Bauer
>
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off