0
var theApp = new ActiveXObject("Outlook.Application");     
var theMailItem = theApp.CreateItem(0);
theMailItem.To = to;
theMailItem.Subject = (subject);
theMailItem.CC = carbon;
theMailItem.Body = (msg);    
theMailItem.display();

I'm using the above javascript code to send emails through outlook everything works fine except the mail's body which isn't HTML formatted, could anyone please help me on this. Thanks in advance

Vickyster
  • 163
  • 3
  • 5
  • 18
  • Could be useful: http://stackoverflow.com/questions/20509994/open-new-email-in-outlook-with-html-body-from-ie-web-site – DBS Jul 01 '16 at 14:15

1 Answers1

0

Instead of setting the plain text Body property, set the HTMLBody property to a properly formatted HTML string.

Dmitry Streblechenko
  • 62,942
  • 4
  • 53
  • 78