473,372 Members | 1,083 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,372 software developers and data experts.

CDONTS - Microsoft VBScript runtime error '800a0046'

Hi!

I have to do some developing and I'm trying to configure my server to mimic
the operation of our production server. The issue I'm having is that I'm
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.

I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.

The object appears to be created properly, but I get an error when the SEND
method executes. (Error and Code shown below)

Obviously I'm missing something else here... Can anyone lend a hand?

Microsoft VBScript runtime error '800a0046'

Permission denied

/shaw/tsrnet/Common_Modules/Mail.asp, line 84
'... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "fr*****@here.now"
objMail.To = "to***@here.now"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send ' **** ERROR HERE ***
Set objMail = nothing
'... some more code ...
Jul 19 '05 #1
10 9736
Be sure that IUSR_[server name] has NTFS permissions to write files to
\inetpub\mailroot\pickup.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:9391c.650856$JQ1.59561@pd7tw1no...
Hi!

I have to do some developing and I'm trying to configure my server to mimic the operation of our production server. The issue I'm having is that I'm
trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.

I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.

The object appears to be created properly, but I get an error when the SEND method executes. (Error and Code shown below)

Obviously I'm missing something else here... Can anyone lend a hand?

Microsoft VBScript runtime error '800a0046'

Permission denied

/shaw/tsrnet/Common_Modules/Mail.asp, line 84
'... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "fr*****@here.now"
objMail.To = "to***@here.now"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send ' **** ERROR HERE ***
Set objMail = nothing
'... some more code ...

Jul 19 '05 #2
Hrm... that folder doesn't exist. Tried adding it but it didnt't work
(didn't expect it to).

I'm thinking that my problem is the third party SMTP server instead of the
IIS SMTP server.

From what I've seen on Google, I've done everything necessary to get CDONTS
to work under Win2K3...

Any other help would be appreaciated.

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
Be sure that IUSR_[server name] has NTFS permissions to write files to
\inetpub\mailroot\pickup.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:9391c.650856$JQ1.59561@pd7tw1no...
Hi!

I have to do some developing and I'm trying to configure my server to

mimic
the operation of our production server. The issue I'm having is that I'm
trying to use CDONTS to send an email under IIS on a Windows 2003 Server. The server does not have the SMTP service running, but I do have a third
party SMTP/POP/IMAP server running.

I have copied the CDONTS.DLL file and registered it. In the Web Serice
Extensions I have enabled the CDONTS.DLL file.

The object appears to be created properly, but I get an error when the

SEND
method executes. (Error and Code shown below)

Obviously I'm missing something else here... Can anyone lend a hand?

Microsoft VBScript runtime error '800a0046'

Permission denied

/shaw/tsrnet/Common_Modules/Mail.asp, line 84
'... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "fr*****@here.now"
objMail.To = "to***@here.now"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send ' **** ERROR HERE ***
Set objMail = nothing
'... some more code ...


Jul 19 '05 #3

"Seeker" <do*******@me.here> wrote in message
news:Wps1c.657039$JQ1.649141@pd7tw1no...
Hrm... that folder doesn't exist. Tried adding it but it didnt't work
(didn't expect it to).

That's different. Is SMTP installed?

I'm thinking that my problem is the third party SMTP server instead of the
IIS SMTP server.
Not if you're using CDONTS, as that doesn't support external SMTP servers.

From what I've seen on Google, I've done everything necessary to get CDONTS to work under Win2K3...


Oh, you're using Win2K3, eh? CDONTS doesn't exist in 2003. Use CDO.

http://www.aspfaq.com/show.asp?id=2026

Ray at work
Jul 19 '05 #4

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:uC**************@TK2MSFTNGP10.phx.gbl...

"Seeker" <do*******@me.here> wrote in message
news:Wps1c.657039$JQ1.649141@pd7tw1no...
Hrm... that folder doesn't exist. Tried adding it but it didnt't work
(didn't expect it to).


That's different. Is SMTP installed?

I'm thinking that my problem is the third party SMTP server instead of the IIS SMTP server.


Not if you're using CDONTS, as that doesn't support external SMTP servers.

From what I've seen on Google, I've done everything necessary to get

CDONTS
to work under Win2K3...


Oh, you're using Win2K3, eh? CDONTS doesn't exist in 2003. Use CDO.

http://www.aspfaq.com/show.asp?id=2026


I don't have a choice... the server I'm coding for uses CDONTS.

I did install CDONTS and register it.

Lack of the MS SMTP server is what's killing me I think. I've got a work
around so it isn't urgent.

Thanks for the help!
Jul 19 '05 #5
Who made that decision to install and use CDONTS? The person should be
fired. ;] If SMTP isn't installed on the server, I do not believe that
CDONTS will work. I mean, you could create a \inetpub\mailroot\pickup
folder and have CDONTS do its thing, but the messages won't go anywhere.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:Frx1c.659301$JQ1.209497@pd7tw1no...
http://www.aspfaq.com/show.asp?id=2026


I don't have a choice... the server I'm coding for uses CDONTS.

I did install CDONTS and register it.

Lack of the MS SMTP server is what's killing me I think. I've got a work
around so it isn't urgent.

Thanks for the help!

Jul 19 '05 #6
Hi,
If IIS SMTP SERVER is not sending your messages you can try this too:
go to properties of your smtp server/delivering/advanced/intelligent host
So you can put the address of other smtp server on your net or even out your
net.
Try it too!
bye,
--

Sem mais,

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Seeker" <do*******@me.here> escreveu na mensagem
news:Wps1c.657039$JQ1.649141@pd7tw1no...
Hrm... that folder doesn't exist. Tried adding it but it didnt't work
(didn't expect it to).

I'm thinking that my problem is the third party SMTP server instead of the
IIS SMTP server.

From what I've seen on Google, I've done everything necessary to get CDONTS to work under Win2K3...

Any other help would be appreaciated.

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:%2****************@TK2MSFTNGP10.phx.gbl...
Be sure that IUSR_[server name] has NTFS permissions to write files to
\inetpub\mailroot\pickup.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:9391c.650856$JQ1.59561@pd7tw1no...
Hi!

I have to do some developing and I'm trying to configure my server to

mimic
the operation of our production server. The issue I'm having is that I'm trying to use CDONTS to send an email under IIS on a Windows 2003 Server. The server does not have the SMTP service running, but I do have a third party SMTP/POP/IMAP server running.

I have copied the CDONTS.DLL file and registered it. In the Web Serice Extensions I have enabled the CDONTS.DLL file.

The object appears to be created properly, but I get an error when the

SEND
method executes. (Error and Code shown below)

Obviously I'm missing something else here... Can anyone lend a hand?

Microsoft VBScript runtime error '800a0046'

Permission denied

/shaw/tsrnet/Common_Modules/Mail.asp, line 84
'... some code ...
Set objMail = server.CreateObject("CDONTS.NewMail")
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.From = "fr*****@here.now"
objMail.To = "to***@here.now"
objMail.Subject = "Subject Here"
objMail.Body = "Message Body Here"
objMail.Send ' **** ERROR HERE ***
Set objMail = nothing
'... some more code ...



Jul 19 '05 #7
Hi,
If IIS SMTP SERVER is not sending your messages you can try this too:
go to properties of your smtp server/delivering/advanced/intelligent host
So you can put the address of other smtp server on your net or even out your
net.
Try it too!
bye,
--

Sem mais,

««««««««»»»»»»»»»»»»»»
Vlmar Brazão de Oliveira
Desenvolvimento Web
HI-TEC
"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> escreveu na
mensagem news:ed**************@tk2msftngp13.phx.gbl...
Who made that decision to install and use CDONTS? The person should be
fired. ;] If SMTP isn't installed on the server, I do not believe that
CDONTS will work. I mean, you could create a \inetpub\mailroot\pickup
folder and have CDONTS do its thing, but the messages won't go anywhere.

Ray at home

"Seeker" <do*******@me.here> wrote in message
news:Frx1c.659301$JQ1.209497@pd7tw1no...
http://www.aspfaq.com/show.asp?id=2026


I don't have a choice... the server I'm coding for uses CDONTS.

I did install CDONTS and register it.

Lack of the MS SMTP server is what's killing me I think. I've got a work
around so it isn't urgent.

Thanks for the help!


Jul 19 '05 #8
"Seeker" wrote in message news:9391c.650856$JQ1.59561@pd7tw1no...
: I have to do some developing and I'm trying to configure my server to
mimic
: the operation of our production server. The issue I'm having is that I'm
: trying to use CDONTS to send an email under IIS on a Windows 2003 Server.
: The server does not have the SMTP service running, but I do have a third
: party SMTP/POP/IMAP server running.
:
: I have copied the CDONTS.DLL file and registered it. In the Web Serice
: Extensions I have enabled the CDONTS.DLL file.
:
: The object appears to be created properly, but I get an error when the
SEND
: method executes. (Error and Code shown below)
:
: Obviously I'm missing something else here... Can anyone lend a hand?
:
: Microsoft VBScript runtime error '800a0046'
:
: Permission denied
:
: /shaw/tsrnet/Common_Modules/Mail.asp, line 84
:
:
: '... some code ...
: Set objMail = server.CreateObject("CDONTS.NewMail")
: objMail.BodyFormat = 0
: objMail.MailFormat = 0
: objMail.From = "fr*****@here.now"
: objMail.To = "to***@here.now"
: objMail.Subject = "Subject Here"
: objMail.Body = "Message Body Here"
: objMail.Send ' **** ERROR HERE ***
: Set objMail = nothing
: '... some more code ...

See if you have covered everything:
http://www.genesis-hosting.com/?pagename=cdontshowto

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 19 '05 #9

"Ray at <%=sLocation%> [MVP]" <myfirstname at lane34 dot com> wrote in
message news:ed**************@tk2msftngp13.phx.gbl...
Who made that decision to install and use CDONTS? The person should be
fired. ;]
Well, the production server is running NT I believe. It's my OWN development
server that's running Win2K3, so I'm trying to add the CDONTS functionality
to my own server.
If SMTP isn't installed on the server, I do not believe that
CDONTS will work. I mean, you could create a \inetpub\mailroot\pickup
folder and have CDONTS do its thing, but the messages won't go anywhere.


Thanks! Thats what I figured.
Jul 19 '05 #10

"Roland Hall" <nobody@nowhere> wrote in message
news:uc*************@tk2msftngp13.phx.gbl...
"Seeker" wrote in message news:9391c.650856$JQ1.59561@pd7tw1no...
: I have to do some developing and I'm trying to configure my server to
mimic
: the operation of our production server. The issue I'm having is that I'm
: trying to use CDONTS to send an email under IIS on a Windows 2003 Server. : The server does not have the SMTP service running, but I do have a third
: party SMTP/POP/IMAP server running. See if you have covered everything:
http://www.genesis-hosting.com/?pagename=cdontshowto


Very helpful stuff... Thank you muchly!!!
Jul 19 '05 #11

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

Similar topics

6
by: Jon Montana | last post by:
CDONTS was working well until I installed Exchange 2000. I thought it might be a relay problem, but I allowed the server IP address to relay. Thanks for anything you can offer. here's the...
2
by: Antknee | last post by:
Hi. I have a Win2k SP4 server running Exchange 2000 SP3 and IIS 5. I am trying to implement a simple asp page that sends email using cdonts. No matter what script I try I get the error: ...
6
by: vasanth kumar | last post by:
I am running the following script for sending e-mail thro web Set objCDOMail = Server.CreateObject("CDONTS.NewMail") objCDOMail.From = "vkumar@ugs.com" objCDOMail.To = "vkumar@ugs.com"...
4
by: F | last post by:
Hi Some one has posted this question on 10th August, as CDONTS is not working on windows 2003 serever. I have the same problem and I copied CDONTS.DLL from Windows 2000 Server and registered on...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
2
by: anidmarty | last post by:
Hey I'm a Sysadmin and my users are getting this error on my production box. It works fine on the dev box. There is a script that is run that generates this error. Production is clustered...
1
by: malgreen | last post by:
Good morning everyone. I recently did an upgrade on a webserver that required me to combine two seperate servers(one front end and one backend). The process is all but complete, however there is a...
1
by: Concheso | last post by:
Hi there! I just created a login page. 1/3 of the login works fine, but some like "Lost Password" of "Admin access to add users" are not working. Any help will be great! The erros: On...
0
by: .nLL | last post by:
Erorr is --------------------- Microsoft VBScript runtime error '800a0046' Permission denied /a.asp, line 3 -----------------------
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.