How check for a successful SEND using CDO?
Posted on 2004-03-29
A Form has to be submitted.
When using aspmail, something like this can be done:
if Mailer.SendMail then
response.write ("Your message was sent")
response.write ("Your message was not sent. ")
response.write ("The error was: " & Mailer.Response)
But how do I check if the message was sent successfully using CDO?
Set objMessage = Server.CreateObject("CDO.Message")
.To = ...
.From = ...
.Subject = ...
.TextBody = ...
Set objMessage = Nothing
What to do after objMessage.Send ?
Thanks a lot!