Forum Moderators: open
I have written a mailing list script that, when posted to, loops through my MSSQL database and sends the form i have submitted to all the users in the database. Can anyone give me any advice on how i can determine whether it was a success or not.
A couple of times i tried it, i got a message saying "page cannot be found" half way through the sending process. It was as if the script had crashed.
Can anyone advise me with any hints or tips on how i can count how many DB entries received the newsletter? and how to make sure the script doesn't crash after 10-15 seconds?
I have used it a couple of times and it has worked, so i think it really just needs tightening up.
Any help appreciated!
Regards
Webboy
Wardbekker is right about trapping the error...
On Error Resume Next
objMail.Send
If err.Number <> 0 Then
Response.write "Error Sending: " & err.number & " - " & err.description
err.clear
end if