Forum Moderators: open

Message Too Old, No Replies

CDONTS email

cdonts email works sometimes, doesn't work sometimes

         

Chardie

12:17 pm on Sep 1, 2003 (gmt 0)



Hello,
I have a .vbs file which runs daily. This file creates, then reads a log file and stores the contents into a variable. It then uses this variable as the body of an email which is then sent using cdonts. This has been running fine for sometime now, though lately it seems not to work on occasion. The .vbs file is running fine, which is evident because the log file is being created. The problem is the email is not sending. Has anybody ever experienced this, or does anybody have any suggestions?

Thanks a lot!

aspdaddy

10:02 pm on Sep 2, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have had intermittent problems with CDONTS & Exchange in the past.

They seemed to get stuck in the exchange message queue or something :) and when the server was reebooted they all would arrive at once.

I dont really know any more than that - thats just what I was told by the admin.

Are you 100% sure the mail item is being created ok?

Hey Chardie, welcome to WW :)

mnamesir

2:56 pm on Sep 4, 2003 (gmt 0)

10+ Year Member



You will want to make sure the TO and FROM properties are set with valid addresses... I think some of the Spam protections added to some mail hosts prevents this-

I ran into this - the script would execute without error, but nothing was ever sent. I added a valid email address to the FROM and it worked fine after!

Good Luck!

aspdaddy

4:12 pm on Sep 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thats a good point to check, I always set the sender to something like:
formmail@mydomain.com
and put any sender email as part of the body, so have never had that problem.

AFAIK,It doesnt have to be a valid email address, it doesnt check the username, only the domain.