views:

255

answers:

1

I am getting this error when I try to send via the local server

CDO.Message.1 error '80070005' 

Access is denied. 

/mail.asp, line xxx 

Here is the code I am using

  MailBodyText = "TEST"

  Set objNewMail = CreateObject("CDO.Message")
  objNewMail.To =  sSendTo
  objNewMail.From = "[email protected]"
  objNewMail.Cc = "[email protected]"
  objNewMail.Subject =  "Information Request & Feedback"
  objNewMail.HTMLBody = "The following information was sent from " & sEmail & ":" & "<br>" & CHR(13) & MailBodyText & "<br>copies of this mail we sent to :"& sSendTo
  objNewMail.Send

  Set objNewMail = Nothing 

It looks like it is a permision error at the ISSUR doen't have write permiosn to write to the mailroot/pickup folder.

But we have checked that and the services account that this site is using seems to have the rights.

Question is this error always a file premision error?

Question how to know / set the location that CDO is using? So we can confirm the permissions

What else should look at to fix this?

+2  A: 
Gaby
thanks for this but I am not trying to send the mail to a remote server just get it to work on the local box.
Pbearne
@Pbearne, you can set the pickup directory through the `.configuration` property (*updated answer*)
Gaby
Thanks for the extra code example it work on the dev server I hate having to put paths into code. but I can live with it
Pbearne