Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Error when using CDO.Message to send email

Posted on 2004-08-16
2
Medium Priority
?
838 Views
Last Modified: 2008-03-10
Dear all,      
        I am trying to run this code in order to send the report to the intended email recipients.  However i receive this error message.
CDO.Message.1 (0x80070005)
Access is denied.

<%
Set objCDO = Server.CreateObject("CDO.Message")
objCDO.To = strTo
objCDO.From = strFrom
objCDO.CreateMHTMLBody "http://cbpit/JbA/report.asp?d1=01&m1=08&y1=2004&d2=31&m2=08&y2=2004", 0
objCDO.Send
Set objCDO = Nothing
%>

How to fix this error? Please advise. Thank you.

Eliza
0
Comment
Question by:elizateh
2 Comments
 
LVL 22

Accepted Solution

by:
neeraj523 earned 500 total points
ID: 11817908
Hello

There seems problem with the IUSER rights to use CDO components..

Have a look at realted question..

http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_20876240.html

hope it will help you out..

neeraj523
0
 
LVL 4

Expert Comment

by:Tasneem
ID: 11817951
alternately the url in CreateMHTMLBody  is not accessible. I see it as a machine name.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Integration Management Part 2
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question