all groups > inetserver asp general > august 2006 >
You're in the

inetserver asp general

group:

Access denied while sending mail from ASP


Access denied while sending mail from ASP LarryF NO[at]SPAM drmworld.com
8/28/2006 1:54:34 PM
inetserver asp general:
I searched through this forum to find a answer to my problem but
couldn't find it in any of the forums, so I'll describe the problem and
the solution here.

I am using ASP on SBS 2003 with IIS 6.0 and Exchange 6.5.7226.0. I have
a page where the user can submit a form to send email. I followed
Microsoft's sample code to use either CDOSYS or CDOEX, but I kept
getting error 80070005, which is an access denied message. Here's my
simple sample code:

<%
function sendEmail(to, from, subject, body) {
var iMsg = Server.CreateObject("CDO.Message")
iMsg.To = to
iMsg.From = from
iMsg.Subject = subject
iMsg.TextBody = body
iMsg.Send()
}
%>

Here's what I did to fix the problem: From the IIS Manager, right-click
Default Web Site, choose Properties, then the Home Directory tab.
Change the Application pool from DefaultAppPool to
ExchangeApplicationPool.

No more error 80070005.

Hope this helps.
Re: Access denied while sending mail from ASP Ray Costanzo [MVP]
8/29/2006 9:52:26 AM
Try giving Write permissions to IUSR_[servername] on
C:\Inetpub\mailroot\pickup

Ray at work

[quoted text, click to view]

AddThis Social Bookmark Button