Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Got some very basic email code on a iis 6 server to send a test email. Relay is enabled on exchange server for this server, the iis user has write permissions to the directories for mailroot and all its subfolders, and yet we still get this blasted error still.

CDO.Message.1 error '80070005' Access is denied. /email.asp, line 42

I don't see any files in the pickup folder, there are files in the queue folder however. Any ideas what else I should look at?

The code on Line 42 is myMail.Send

share|improve this question
    
What is the code on line 42? –  squillman Jan 19 '10 at 17:55
    
It is myMail.Send –  aduljr Jan 19 '10 at 17:57
add comment

2 Answers

up vote 2 down vote accepted

Found the problem, it was permissions to the SMTP service. The IIS user nor did system have access to that. We added that and it is working now.

share|improve this answer
    
Good deal, thanks for the follow-up! –  squillman Jan 19 '10 at 18:36
add comment

That indicates that your server is not allowing CDO to send messages through it. The most frequent cause of this is an authentication issue. If your Exchange server requires authentication check the app code that sets up the authentication. Ensure that 1) it's using authentication and 2) the username and pwd are in fact correct.

share|improve this answer
    
Not sure if the exchange server is requiring authentication, which may be the case. If it is, then that definitely needs to be added to the code as it does not have it. –  aduljr Jan 19 '10 at 18:14
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.