473,387 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Access denied while sending mail from ASP

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.

Aug 28 '06 #1
1 2982
Try giving Write permissions to IUSR_[servername] on
C:\Inetpub\mailroot\pickup

Ray at work

<La****@drmworld.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
>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.

Aug 29 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bob Bedford | last post by:
when sending an email from the mail() function I get this message: mail(): SMTP server response: 550 5.7.1 <test@test.com>... Relaying denied. Proper authentication required I did set the...
1
by: Ray Paganini | last post by:
I'm running IIS 6.0 with Exchange 2003. One web site that is hosting is trying to use the new CDO method of sending e-mail. SMTP Service is working fine for Exchange, but for web sites on the...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
2
by: Brent Burkart | last post by:
I am trying to send an email using SMTP server through IIS. I am recieving the following error. Access is denied. Description: An unhandled exception occurred during the execution of the...
1
by: festivalman | last post by:
Hi, sorry if this is in the wrong spot. Finding the newsgroups on MS's site could have been easier Here's my problem I've got some old asp's that are running our simple web site. In a section,...
0
by: Erwan | last post by:
I have a strange (but very blocking) result when using the smtpmail class from an ASPX page : here is the (very simple !) code... '-------------------------------------------------- mail.To =...
4
by: Liz Patton | last post by:
Here's the exception: System.Exception: Unable to send mail: Could not access 'CDO.Message' object. ---> System.Web.HttpException: Could not access 'CDO.Message' object. --->...
0
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Hi. I'm using System.Web.Mail to compose and send a message. I'm receiving an "Access is denied" error message when non-Domain Administrators attach files to the MailMessage. My allows users...
6
Carrugar
by: Carrugar | last post by:
I'm running IIS 6.0 on a Win2003 server. One web page is trying to use the new CDO method of sending e-mail but generates the following error: CDO.Message.1 error '80070005' Access is denied. ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.