472,371 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Basic CDONTS question

objNewMail = Server.CreateObject("CDONTS.NewMail")

How do I know whether the "Send" command from a CDONTS object actually was
sent?

Is there a status variable that can be checked? Or a log file that can be
written to?

Thanks in advance!

Steve
Jul 19 '05 #1
4 4132
BCC yourself.

All that CDONTS does is create a text file that is compliant with SMTP
requirements and drops the file in \inetpub\mailroot\pickup. From there,
it's up to your SMTP service to handle sending it. If the message cannot be
sent, like because of a DNS issue or an invalid from address, for example,
you will see entries in the application log on the server. (I believe it's
app, and not system.)

Ray at work

p.s. Unless you're on an NT server, you should use CDOSYS. CDONTS is old
technology. http://www.aspfaq.com/2026

"Steve" <sb*****@deletethis.stny.rr.com> wrote in message
news:Du*******************@twister.nyroc.rr.com...
objNewMail = Server.CreateObject("CDONTS.NewMail")

How do I know whether the "Send" command from a CDONTS object actually was
sent?

Is there a status variable that can be checked? Or a log file that can be
written to?

Thanks in advance!

Steve

Jul 19 '05 #2
Ray,

Thanks for your reply.

I found the message sitting in the pickup directory.

Any idea why it's just sitting there (I know this goes beyond this
newsgroup)?

Thanks again,
Steve

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
BCC yourself.

All that CDONTS does is create a text file that is compliant with SMTP
requirements and drops the file in \inetpub\mailroot\pickup. From there,
it's up to your SMTP service to handle sending it. If the message cannot be sent, like because of a DNS issue or an invalid from address, for example,
you will see entries in the application log on the server. (I believe it's
app, and not system.)

Ray at work

p.s. Unless you're on an NT server, you should use CDOSYS. CDONTS is old
technology. http://www.aspfaq.com/2026

"Steve" <sb*****@deletethis.stny.rr.com> wrote in message
news:Du*******************@twister.nyroc.rr.com...
objNewMail = Server.CreateObject("CDONTS.NewMail")

How do I know whether the "Send" command from a CDONTS object actually was sent?

Is there a status variable that can be checked? Or a log file that can be written to?

Thanks in advance!

Steve


Jul 19 '05 #3
> I found the message sitting in the pickup directory.

http://www.aspfaq.com/2268

Use CDO.Message and an SMTP server. CDONTS is horrible, and has been
deprecated for this and a variety of other reasons.

http://www.aspfaq.com/2026
Jul 19 '05 #4
Look in the event logs on the server for SMTP events. There should be
something indicating why the message couldn't be sent, either a DNS issue, a
relaying issue, or something else. Either that, or the SMTP service isn't
running.

Ray at work

"Steve" <sb*****@deletethis.stny.rr.com> wrote in message
news:IS*******************@twister.nyroc.rr.com...
Ray,

Thanks for your reply.

I found the message sitting in the pickup directory.

Any idea why it's just sitting there (I know this goes beyond this
newsgroup)?

Thanks again,
Steve

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:On**************@TK2MSFTNGP11.phx.gbl...
BCC yourself.

All that CDONTS does is create a text file that is compliant with SMTP
requirements and drops the file in \inetpub\mailroot\pickup. From there,
it's up to your SMTP service to handle sending it. If the message cannot
be
sent, like because of a DNS issue or an invalid from address, for

example, you will see entries in the application log on the server. (I believe it's app, and not system.)

Ray at work

p.s. Unless you're on an NT server, you should use CDOSYS. CDONTS is old technology. http://www.aspfaq.com/2026

"Steve" <sb*****@deletethis.stny.rr.com> wrote in message
news:Du*******************@twister.nyroc.rr.com...
objNewMail = Server.CreateObject("CDONTS.NewMail")

How do I know whether the "Send" command from a CDONTS object actually

was sent?

Is there a status variable that can be checked? Or a log file that can be written to?

Thanks in advance!

Steve



Jul 19 '05 #5

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

Similar topics

3
by: Ryan McLean | last post by:
Hello everyone! I have a question for ya'll. In a web-based asp application I am creating and (attempting to) attach a file. The email sends correctly, but when I try to open the attachment, it...
29
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the...
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...
4
by: CK | last post by:
Hi all, I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order form to the admin email. I am planning to use the...
16
by: tshad | last post by:
I have both cdosys.dll and cdonts.dll on my W2K3 server. We have been told by our web authors that their asp code won't work on our machine and that we don't have CDONTS installed on our machine....
12
by: Jeff | last post by:
I have a dedicated windows server on BlueGenesis. I'd like to send an email using ASP, but I'm getting this error message: Microsoft VBScript runtime error '800a01ad' ActiveX component...
3
by: Hugo Lefebvre | last post by:
Is there a maximum number of emails CDONTS can handle in an asp script? I have different questions about this. Question1: example1: set objSendMail = createobject("CDONTS.NewMail") ...... ...
3
by: tamaker | last post by:
I have Road Runner cable internet access and Im working in a local development environment (writing .ASP) and have a site running on my network on a windows xp pro machine via IIS with CDONTS...
3
by: Prasad | last post by:
Hi all, I had to write a page in ASP which sends an email. I googled and was able to write the following code: <html> <body> <% Set Mail = Server.CreateObject("CDONTS.NewMail") Mail.To =...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
2
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
1
by: ezappsrUS | last post by:
Hi, I wonder if someone knows where I am going wrong below. I have a continuous form and two labels where only one would be visible depending on the checkbox being checked or not. Below is the...

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.