Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Outlook using ASP.

Status
Not open for further replies.

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")
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top