473,473 Members | 1,581 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Send Method (CDONTS NewMail Object)


Is there a way to determin if the email message was sent? I have a
numnber of applications that use CDONTS to send mail from both ASP and
ASPX pages. If the server is down mail does not get sent. I do not see a
way to determine this by code. Does anyone know of a way?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
6 3481
Use CDO.Message and a *RELIABLE* SMTP server.

If you really want to stick with deprecated functionality like CDONTS, you
can check the pickup, queue and badmail folders using FileSystemObject.

A

"George Viveiros" <viveirosg(removethis)@npt.nuwc.navy.mil> wrote in message
news:eh**************@TK2MSFTNGP09.phx.gbl...

Is there a way to determin if the email message was sent? I have a
numnber of applications that use CDONTS to send mail from both ASP and
ASPX pages. If the server is down mail does not get sent. I do not see a
way to determine this by code. Does anyone know of a way?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
1. What other options are there besides CDONTS?

2. Where would one find some code examples to check the pickup, queue
and badmail folders?
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Didn`t catch: Use CDO.Message and a *RELIABLE* SMTP server, at first.
What do you consider a *RELIABLE* SMTP server?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #4
> What do you consider a *RELIABLE* SMTP server?

One where you don't have to worry about what happens when, as you stated,
"the server is down."

A reliable SMTP server is just up, and stays up.
Jul 19 '05 #5
> 1. What other options are there besides CDONTS?

Like I said, CDO.Message (see http://www.aspfaq.com/2026), or there are
plenty of 3rd party options, e.g. http://www.aspfaq.com/2119
2. Where would one find some code examples to check the pickup, queue
and badmail folders?


You would use FileSystemObject. Here is a quick sample (I have no idea what
the path to *your* badmail folder would be):

set fso = CreateObject("Scripting.FileSystemObject")
set fold = fso.getFolder("c:\...path...\badmail\")
for each fil in fold.files
response.write fil.name & "<br>"
next
set fold = nothing
set fso = nothing

Also see http://www.aspfaq.com/2039
Jul 19 '05 #6
www.ibm.com/as400

Ray at work

"Aaron Bertrand - MVP" <aa***@TRASHaspfaq.com> wrote in message
news:uV**************@TK2MSFTNGP12.phx.gbl...
What do you consider a *RELIABLE* SMTP server?


One where you don't have to worry about what happens when, as you stated,
"the server is down."

A reliable SMTP server is just up, and stays up.

Jul 19 '05 #7

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

Similar topics

2
by: David | last post by:
My email application was working a couple of weeks ago, then all of a sudden I get Error Type: (0x8009000F) Object already exists. I checked the permissions on the machinekeys directory...
1
by: Edward | last post by:
My computer is at intranet,I want to use following code to realizing function of sending mail.But this program only can send mail between intranet.If I send mail in internet,I need to through proxy...
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...
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"...
2
by: Jammer | last post by:
Can someone give me some sample code to use CDONTS.new to send email with an attachment? I've got sample code from the following website; ...
2
by: Marty | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples...
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: microsoft.public.dotnet.languages.csharp | last post by:
ASP.Net, C#, Email message, CDonts not CDO I am writing an ASP.Net application where I cannot use CDO. I must use CDonts. I cannot find an example of this on the Internet. I only see examples...
2
by: Paul Turley | last post by:
How do I format a message so it shows up as a web page in the mail reader. In the body of my message, I'm including a '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Traditional//EN">' tag and...
3
by: Luiz Vianna | last post by:
Guys, I have a Windows 2003 running Exchange 2003. On this machine I'm trying to run an ASP.NET webform to send an e-mail. The codebehing my ASPX is like this: Dim NewMail As New...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.