0

with ActiveX I can create an Outlook instance and start a new HTML e-Mail.

Here is the sample code:

var outlookApp = new ActiveXObject("Outlook.Application");

var nameSpace = outlookApp.getNameSpace("MAPI");

mailFolder = nameSpace.getDefaultFolder(6);

mailItem = mailFolder.Items.add('IPM.Note.FormA');

mailItem.Subject="a subject test";

mailItem.To = "an@email.here";

mailItem.HTMLBody = "bold";

mailItem.display (0); Is there an equivalent for Firefox and crome. Has anyone a sample please?

Thank you!

Woeitg
  • 807
  • 1
  • 20
  • 40
Anupam Somani
  • 154
  • 2
  • 15

3 Answers3

1

No. Only IE can work with COM objects if your site is trusted and can create COM objects in a script.

Dmitry Streblechenko
  • 56,873
  • 3
  • 44
  • 75
1

Use the mailto protocol in scripts. You can automate Outlook from IE only (refer to Dmitry's post).

Eugene Astafiev
  • 26,795
  • 2
  • 13
  • 31
0

All Chrome user/ Developers know that ActiveX not supported by chrome browser due to the security reasons.

All you can do is developing workaround or resolve it using URI Scheme check my answer here