I have set up an email script that sends email from my website using CDOSYS, however, I have been unable to find any information on how to detect whether emails are being delivered or not.
All messages from external email servers will go to the "from" emailadress, not straight back to the CDOSYS script. In many situations there is a delay between sending the email and receiving a bounce.
I'm not sure whether bounced email is the correct term but I basically want to be able to detect emails that have failed to be sent. I have a piece of mailing software running on my computer which gives me detailed reports of which emails where sent and which failed. I am after a way of replicating these reports within an asp page.
The reason I want this is because my ISP limits sending email to 50 an hour when using my emailing software. I can send more when sending directly from my webspace, however, I do not have a way of detecting whether an email has been successfully sent.
I perhaps should have said all this on my original post but anyway, is there a way to detect errors using a classic ASP script?
Check the error code that the CDOSYSobject.send() returns if it is a non-zero value the message failed for one reason or another.
HOWEVER this only indicates no errors raised by the messaging system on the local machine. It has now way of knowing if any errors were encountered on third party (relaying or receiving) SMTP servers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.