|
 |
asp_cdo thread: Permission denied for Send method of NewMail Object- Please help
Message #1 by "Parthasarathi Das" <parthasarathid@c...> on Tue, 19 Dec 2000 18:55:00 +0530
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0029_01C069ED.30848250
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all!
I am a student learning ASP for sometime. At present I have a ASP
web-page development project in which I have to enable sending of
E-Mails from ASP pages. I am using a Windows NT workstation and IIS 4.0
and in this case I am using CDO(Collaboration Data Objects) for NT
Sever. I have written a simple demo program for checking this. But it
generates an error saying "Permission Denied" at CDONTS.NewMail Object's
"send" method. I have web-shared the folder in which the ASP
file(email1.asp) lies(C:\Inetpub\wwwroot) and checked all the necessary
permissions (Read,Execute,Script). Still the problem persists.
Can somebody help me out in anyway?
The code is given below:
<%@ Language=3DVBScript %>
<HTML>
<HEAD>
<META NAME=3D"GENERATOR" Content=3D"Microsoft Visual Studio 6.0">
<TITLE>SENDING MAIL</TITLE>
</HEAD>
<BODY bgColor=3D"Wheat">
<P> </P>
<%
Dim objNewMail
Set objNewMail =3D CreateObject("CDONTS.NewMail")
HTML =3D "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">"
HTML =3D HTML & "<HEAD>"
HTML =3D HTML & "<HEAD>"
HTML =3D HTML & "<TITLE>Trying to test CDONTS</TITLE>"
HTML =3D HTML & "</HEAD>"
HTML =3D HTML & "<BODY>"
HTML =3D HTML & "<STRONG>This is to test capabilities of CDONTS for
e-mail from asp pages</STRONG>"
HTML =3D HTML & "<TABLE BORDER=3D'1' WIDTH=3D'150'><TR><TD>Simple table
example</TD></TR></TABLE>"
HTML =3D HTML & "
---<BR>
http://www.asptoday.com - the leading site for timely,<BR>
in-depth information for ASP developers everywhere.<BR>
---<BR>
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')<BR>
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com<BR>
</BODY>"
HTML =3D HTML & "</HTML>"
objNewMail.From =3D "parthasarathid@c..."
objNewMail.To =3D "xyz@c..."
objNewMail.Subject =3D "Hi!! This is a sample testing capabilities of
CDONTS!"
objNewMail.BodyFormat =3D 0
objNewMail.MailFormat =3D 0
objNewMail.Body =3D HTML
objNewMail.Send
Set objNewMail =3D Nothing
%>
---<BR>
http://www.asptoday.com - the leading site for timely,<BR>
in-depth information for ASP developers everywhere.<BR>
---<BR>
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')<BR>
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com<BR>
</BODY>
</HTML>
The error here is shown below. Line 30 refers to objNewMail.Send.
Please help me.
Microsoft VBScript runtime error '800a0046'
Permission denied
/bookdemo/email1.asp, line 30
Message #2 by Koduru Srinivasa <skoduru_reddy@y...> on Tue, 19 Dec 2000 09:48:25 -0800 (PST)
|
|
i think CDONTS will work under NT Server only. i am
using it currently.
--- Parthasarathi Das > Hi all!
> I am a student learning ASP for sometime. At
> present I have a ASP
> web-page development project in which I have to
> enable sending of
> E-Mails from ASP pages. I am using a Windows NT
> workstation and IIS 4.0
>
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com
Message #3 by "Parthasarathi Das" <parthasarathid@c...> on Wed, 20 Dec 2000 10:32:47 +0530
|
|
Hi,
CDO for NTS works for NT workstations too using SMTP service. The only
thing is that I have to somehow configure it such that it communicates with
my default mail client(mail handler) which is currently Microsoft Outlook
Express 5. Here is where the permissions have to be set so that SMTP service
uses the Mail Server to which my machine is a terminal. But I don't know how
to do this stuff.
If anybody knows this please help me.
Regards,
Parthasarathi Das.
----- Original Message -----
From: Koduru Srinivasa <skoduru_reddy@y...>
To: ASP CDO <asp_cdo@p...>
Sent: Tuesday, December 19, 2000 11:18 PM
Subject: [asp_cdo] Re: Permission denied for Send method of NewMail Object-
Please help
> i think CDONTS will work under NT Server only. i am
> using it currently.
> --- Parthasarathi Das > Hi all!
> > I am a student learning ASP for sometime. At
> > present I have a ASP
> > web-page development project in which I have to
> > enable sending of
> > E-Mails from ASP pages. I am using a Windows NT
> > workstation and IIS 4.0
> >
>
---
http://www.asptoday.com - the leading site for timely,
in-depth information for ASP developers everywhere.
---
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com
|
|
 |