Change ActiveX email font

220 views Asked by At

Would anyone know how to change the font in an email generated by new ActiveXObject("Outlook.Application")?

This seems to default to Times New Roman regardless of the default settings in the mail client.

Thanks

1

There are 1 answers

0
Eugene Astafiev On BEST ANSWER

The Outlook object model provides three main ways for working item bodies:

  1. Body - a string representing the clear-text body of the Outlook item.
  2. HTMLBody - a string representing the HTML body of the specified item.
  3. Word editor - the Microsoft Word Document Object Model of the message being displayed. The WordEditor property of the Inspector class returns an instance of the Document class from the Word object model which you can use to set up the message body.

You can read more about all these ways in the Chapter 17: Working with Item Bodies. It us up to you which way is to choose to customize the message body. But the last two ways allows to choose a font.