permissions problem

G

Gonzosez

I have created an email app with asp.
When I try to send I get this message.

Error Type:
Microsoft VBScript runtime (0x800A0046)
Permission denied

I know it has something to do with the IUSR & IWAM accounts on the server.

How do these have to be set?
 
R

Ray Costanzo [MVP]

Showing your code is usually helpful.

Give write permission to \inetpub\mailroot\pickup.

Ray at work
 
G

Gonzosez

here is the code

Dim objCDO
dim objConfig
Set objCDO = Server.CreateObject("CDO.Message")
'Set objCDO =Server.CreateObject("CDONTS.NewMail")

Dim strTo
Dim strFrom
Dim strSubject
Dim strBody
'Dim objCDO

strFrom = "(e-mail address removed)"

strSubject = "Sample HTML Email sent from ASP 101!"

strBody = "text this email"

With objCDO
.To = strTo
.From = strFrom
.Subject = strSubject
.body = strBody
.Send
end with
set objCDO=nothing

The code stops on the .send
 
R

Ray Costanzo [MVP]

Give IUSR permission to write to \inetpub\mailroot\pickup. The .send method
merely writes a text file to that directory, and then the SMTP service goes
and sweeps it up when it notices it's there.

Ray at work
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top