|
it
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
permissions problem
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? Showing your code is usually helpful.
Give write permission to \inetpub\mailroot\pickup. Ray at work Show quote "Gonzosez" <nospam@home.com> wrote in message news:eEelRJhFGHA.312@TK2MSFTNGP09.phx.gbl... >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? > > 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 = "some***@anywhere.com" 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 Show quote "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in message news:u%23CFJNhFGHA.216@TK2MSFTNGP15.phx.gbl... > Showing your code is usually helpful. > > Give write permission to \inetpub\mailroot\pickup. > > Ray at work > > "Gonzosez" <nospam@home.com> wrote in message > news:eEelRJhFGHA.312@TK2MSFTNGP09.phx.gbl... > >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? > > > > > > it might not be permissions related on the server.. it could be lack of an
smtp server on the server .. or an invalid pickup directlory...or something like that just send your email using smtp authentication and a real email server that you have a pop 3 account with and it should send out fine like in this article http://www.powerasp.com/content/new/sending_email_cdosys.asp Show quote "Gonzosez" <nospam@home.com> wrote in message news:uF7f8WhFGHA.3000@TK2MSFTNGP14.phx.gbl... > 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 = "some***@anywhere.com" > > 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 > "Ray Costanzo [MVP]" <my first name at lane 34 dot commercial> wrote in > message news:u%23CFJNhFGHA.216@TK2MSFTNGP15.phx.gbl... >> Showing your code is usually helpful. >> >> Give write permission to \inetpub\mailroot\pickup. >> >> Ray at work >> >> "Gonzosez" <nospam@home.com> wrote in message >> news:eEelRJhFGHA.312@TK2MSFTNGP09.phx.gbl... >> >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? >> > >> > >> >> > > 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 Show quote "Gonzosez" <nospam@home.com> wrote in message news:uF7f8WhFGHA.3000@TK2MSFTNGP14.phx.gbl... > 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 = "some***@anywhere.com" > > 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 |
|||||||||||||||||||||||