|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
email permission problems
Hi all,
I am running Exchange server 2000 on a machine with windows 2000 advanced server. So far it has been running without a problem. I have no problem in sending or receiving emails. But when i try to get the site to send an automated email alert using ASP, i have got permission problems. --------------------------------------------------- DIM strEmail strEmail = Request.Form("Email") dim msconn DIM mail, objMail Set objMail = Server.CreateObject("CDONTS.NewMail") objMail.From = "admin@abc.com" objMail.Subject = "This is a test" objMail.To = "webmaster@xyz.com" objMail.Body = "this is a test email from abc.com" objMail.Send Set objMail = nothing ---------------------------------------------------- This code works perfectly well from any machine apart from the domain controller. On the domain controller, i get the following access denied error message: ---------------------------------------------- Microsoft VBScript runtime error '800a0046' Permission denied /Emailer.asp, line 310 ----------------------------------------------- I have given full permission to the drop folder in the mail root as guided in other sites. It's still not working. Can anyone tell me where i'm going wrong? anything else i can try?
__________________
max |
|
#2
|
||||
|
||||
|
Quote:
So what is on line 310 of EMAILER.ASP? That is where the error is according to VB.
__________________
Curious by Nature, Linux by Choice |
|
#4
|
||||
|
||||
|
bear with me:
Quote:
should this be DIM email, objMail? since you are creating an request.form("email")? I maybe wrong if you can call the email object (sorry - i'm a little rusty on that) OK, Also, according to MS there are instructions for re-setting permissions on the folder in IIS. Did this work? Lastly, I've run into issues where the WSH (windows scripting host) was disabled by an ADMIN to prevent the server being an open relay. Remember that if your able to run that .ASP page to create a form email from a site that could technically be considered an OPEN RELAY as others could exploit your site to send their email. thoughts?? hth |
|
#5
|
|||
|
|||
|
Actually outlook is the agent here
That's a good point, but i forgot to tell you that, when the email is sent, from the other machine, this machine has windows 2000 aswell, and it's on the same network. but the email is going through outlook. As you know, there is an SMTP password gateway, so this is what is making the code work. But the snag is, my domain controller doesn't have microsoft outlook (for security reasons. Do you still think there'd be a security hole?)
By the way, yes, i have blocked open relays, but is it possible for me to allow open relays for this code? |
![]() |
| Viewing: Dev Shed Forums > System Administration > Mail Server Help > email permission problems |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|