TheShadow2000
Programmer
- Dec 20, 2001
- 4
I need to open up a new mail window in Outlook using ASP and fill that window with a send to email address, subject line and body. This is the code I have so far.
Dim objOutlookApp
Dim objEmailMessage
Set objOutlookApp= createobject("Outlook.Application"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Set objEmailMessage=objOutlookApp.createItem(0)
with objEmailMessage
.to = strSendTo
.subject=strSubject
.body = strBody
.Display
end with
When it runs it comes up with the following error:
Microsoft VBScript runtime error '800a0046'
Permission denied: 'createobject'
/scripts/SendMail.asp, line 15
Line 15 being the line "Set objOutlookApp= createobject("Outlook.Application"
"
I'm sure its something small I'm missing and any help would be greatly appreciated.
Thanks
Dim objOutlookApp
Dim objEmailMessage
Set objOutlookApp= createobject("Outlook.Application"
Set objEmailMessage=objOutlookApp.createItem(0)
with objEmailMessage
.to = strSendTo
.subject=strSubject
.body = strBody
.Display
end with
When it runs it comes up with the following error:
Microsoft VBScript runtime error '800a0046'
Permission denied: 'createobject'
/scripts/SendMail.asp, line 15
Line 15 being the line "Set objOutlookApp= createobject("Outlook.Application"
I'm sure its something small I'm missing and any help would be greatly appreciated.
Thanks