0
votes

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 = "[email protected]";

mailItem.HTMLBody = "bold";

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

Thank you!

3

3 Answers

1
votes

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

1
votes

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

0
votes

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