Forum Moderators: open

Message Too Old, No Replies

CDONT Email Sent status

         

TheSeoGuy

5:16 pm on Sep 30, 2004 (gmt 0)

10+ Year Member



When using CDONTS send method, for email in traditional ASP, how do you know if the e-mail was sent...

So that we may display the proper message?

Thanks in advance.

MozMan

5:25 pm on Sep 30, 2004 (gmt 0)

10+ Year Member



It's been a while, but if I remember correctly, with CDONTS, when you issue the send command it returns a boolean (T/F) to indicate success/failure.

So, you should be able to simply incorporate your send into and if-then-else something like this:

If objMailer.Send Then
response.write "Your message was sent."
Else
response.write "Your message was not sent."
End If

-Moz