CooterBrown
IS-IT--Management
Microsoft VBScript runtime error '800a01ad'
ActiveX component can't create object: 'Outlook.Application'
I am trying to connect to Microsoft Outlook with asp and I am getting this message. Do I need to install drivers on my exchange server? Also if I put set outlook=server.createobject i get a different error message.
<%
Set Outlook=CreateObject("Outlook.Application"
response.write outlook
If Outlook="Outlook" Then
'Outlook is on this machine
Set Mapi=Outlook.GetNameSpace("MAPI"
Set Lists=Mapi.AddressLists
For Each ListIndex in Lists
If ListIndex.AddressEntries.Count<>0 THEN
ContactCount=ListIndex.AddressEntries.Count
For Count=1 to ContactCount
Set Contact=ListIndex.AddressEntries(Count)
emailaddresses=emailaddresses&Contact.Address&vbcrlf
Next
End IF
NEXT
MsgBox(emailaddresses)
END IF
%>
ActiveX component can't create object: 'Outlook.Application'
I am trying to connect to Microsoft Outlook with asp and I am getting this message. Do I need to install drivers on my exchange server? Also if I put set outlook=server.createobject i get a different error message.
<%
Set Outlook=CreateObject("Outlook.Application"
response.write outlook
If Outlook="Outlook" Then
'Outlook is on this machine
Set Mapi=Outlook.GetNameSpace("MAPI"
Set Lists=Mapi.AddressLists
For Each ListIndex in Lists
If ListIndex.AddressEntries.Count<>0 THEN
ContactCount=ListIndex.AddressEntries.Count
For Count=1 to ContactCount
Set Contact=ListIndex.AddressEntries(Count)
emailaddresses=emailaddresses&Contact.Address&vbcrlf
Next
End IF
NEXT
MsgBox(emailaddresses)
END IF
%>