Hi everyone,
I need to convert the code below to javascript. I'm close except I have problems with the olMailItem part. See both sample below. Any help would be great.
thx
VB Code:
Sub btnEmail(subject, tofield, body) Set myOlApp = CreateObject("Outlook.Application") Set myOlExp = myOlApp.ActiveExplorer Set myItem = myOlApp.CreateItem(olMailItem) myItem.Subject = subject myItem.Body = body myItem.To = tofield myOLExp.Activate MyItem.Display End Sub
Code:function btnEmailJava(subject, tofield, body) { var myOlApp = new ActiveXObject("Outlook.Application"); var myOlExp = myOlApp.ActiveExplorer; var myItem = ??????; myItem.Subject = subject; myItem.Body = body; myItem.To = tofield; myOLExp.Activate; MyItem.Display; }





Reply With Quote