Reputation: 224
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!
Upvotes: 0
Views: 3162
Reputation: 477
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
Upvotes: 0
Reputation: 49395
Use the mailto protocol in scripts. You can automate Outlook from IE only (refer to Dmitry's post).
Upvotes: 1
Reputation: 66235
No. Only IE can work with COM objects if your site is trusted and can create COM objects in a script.
Upvotes: 1