durs / node-activex

Node.JS Implementaion of ActiveXObject
MIT License
326 stars 62 forks source link

Winax with Outlook #96

Open ketomagasaki opened 3 years ago

ketomagasaki commented 3 years ago

Hello,

I am trying to use Winax on Outlook. The goal is to browse the mails in addresses. I start with:

var obOutlook = new ActiveXObject ('Outlook.Application');
var obNameSpace = obOutlook.GetNameSpace ('MAPI');

Then:

var obBoite = obNameSpace.Folders (‘xxxxxxxx@xxxx.com ’);

Node.js closes directly without an error message. Do you have sample code to browse email addresses open in Outlook.exe?

Thank you

somanuell commented 2 years ago

You have to use a require clause. If you don't, node says ReferenceError: ActiveXObject is not defined If you do, there is no errors, and node exits normaly when your script ends. you should add a console.log as last line.

You should search the Internet for code doing what you want with the Outlook ActiveX, either in VBA or in Javascript, and validate the code witch cscript.exe

Then try with winax, and open issue if you found problems.

That particular issue should be Closed!