IIS6 cdo.message cannot send emails access denied error

asp-classicemailiis-6smtp

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

Best Answer

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.