Microsoft.Office.Interop.Outlook, Version=11.0.0.0 ...Using this I was able to create a class definition for MailItems. However, the code crashes every time I try to run it.
oapp = CREATEOBJECT("Outlook.Application") oEvents=NEWOBJECT("myclass") oItem = oapp.createItem(0) EVENTHANDLER(oItem,oEvents) oItem.Subject = "Test" oItem.Display RETURN DEFINE CLASS myclass AS session OLEPUBLIC IMPLEMENTS _MailItem IN "Outlook.MailItem" ... PROCEDURE _MailItem_Send() AS VOID * add user code here = MESSAGEBOX("Mail was sent") ENDPROC ... ENDDEFINEI expect I'm going to run into a scoping issue with this code, but I'm not even getting that far. This code crashes on the line trying to instantiate my class. I get the message: Type Library Outlook.MailItem not found.