Google 網路論壇不再支援新的 Usenet 貼文或訂閱項目,但過往內容仍可供查看。

Access denied while sending mail from ASP

瀏覽次數:54 次
跳到第一則未讀訊息

Lar...@drmworld.com

未讀,
2006年8月28日 下午4:54:342006/8/28
收件者:
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.

Ray Costanzo [MVP]

未讀,
2006年8月29日 上午9:52:262006/8/29
收件者:
Try giving Write permissions to IUSR_[servername] on
C:\Inetpub\mailroot\pickup

Ray at work

<Lar...@drmworld.com> wrote in message
news:1156798474.5...@m73g2000cwd.googlegroups.com...

0 則新訊息