Solved

Error when using CDO.Message to send email

Posted on 2004-08-16
2
829 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 125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

920 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now