I have the following code running on a win2k server this code is 
working in one environment but failing on one of our test servers 
with a permissions denied error.  I have granted the IUSR and IWAM 
full access to the mailroot directory and its subdirectories. can you 
recomend anything else I might try.  Thanks

set obFeedback = Server.CreateObject("CDONTS.NewMail")

        obFeedback.From = Session("snMailFrom")         'Session 
Variable set in the global.asa file
        '  obFeedback.From = "[EMAIL PROTECTED]"
        obFeedback.To = request.FORM("recipient")'Application
("snMailTo")                    'Session Variable set in the 
global.asa file
        obFeedback.cc = Session("snEMailID") 'Session Variable set in 
the global.asa file
        obFeedback.Subject = "Feedback" 
        obFeedback.Body = fdbkBody                              'From 
Form Object
        
        
        If fdbkBody <> "" then 
            on error resume next
                obFeedback.send
                If  err.number > 0 then
                        response.write "VBScript Errors Occured:" 
& "<P>"
                        response.write "Error Number=" & err.number 
& "<P>"
                        response.write "Error Descr.=" & 
err.description & "<P>"
                        response.write "Help Context=" & 
err.helpcontext & "<P>" 
                        response.write "Help Path=" & err.helppath 
& "<P>"
                        response.write "Native Error=" & 
err.nativeerror & "<P>"
                        response.write "Source=" & err.source & "<P>" 
                else%> 
                        <center>
                        <br>
                        <br>
                        <br>
                        <p><span class=message > Mail was sent 
successfully.</span></p>
                        <p></p>
                        <p><input type='button' value='Close' 
onClick="top.close()"></p>
                        </center>
                <%end if
        else
                Response.Redirect("../Docs/fdbkmail.asp?MsgID=211")
        end if
        set obFeedback = Nothing








------------------------ Yahoo! Groups Sponsor --------------------~--> 
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/k7folB/TM
--------------------------------------------------------------------~-> 


'// =======================================================
    Rules : http://ReliableAnswers.com/List/Rules.asp
    Home  : http://groups.yahoo.com/group/vbHelp/
    =======================================================
    Post  : [EMAIL PROTECTED]
    Join  : [EMAIL PROTECTED]
    Leave : [EMAIL PROTECTED]
'// =======================================================
 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/vbhelp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to