Generating emails with formatting.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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.
 
Back
Top