I wanted to launch default mail window from Gecko App. This one which is normaly launched from web pages after clicking on href="mailto:adress". Basing on what Timeless gave yesterday i builded this:
f=Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsILocalFile);
f.initWithPath('C:\\Program Files\\Outlook Express\\msimn.exe /mailurl:mailto:adress');
p=Components.classes["@mozilla.org/process/util;1"].createInstance(Components.interfaces.nsIProcess);
p.init(f);
p.run(true, [], 0, {});
This one works. But it uses Outlook always ( no matter what is default Windows mail client), and at all is dirty.
Is there any way to do this "better"?
Thanks for any help.
Greetings Zbigniew Braniecki
