error handling for mail.Send

Results 1 to 2 of 2

Thread: error handling for mail.Send

  1. #1
    Join Date
    Dec 1969

    Default error handling for mail.Send

    Does anyone have a short script I could use to see if an email has been successfully sent?

  2. #2
    Kentium Guest

    Default here ya go

    Response.write "About to set objNewMail"<BR>Set objNewMail = CreateObject("CDONTS.NewMail") <BR>Response.write "Successfully set objNewMail"<BR>Response.write "About set the objNewMail parameters"<BR>objNewMail.From = ""<BR>objNewMail.To = ""<BR>objNewMail.Subject = "Subject here"<BR>objNewMail.Body = "Message Text"<BR>objNewMail.Importance = 1<BR>Response.write "About to send the mail"<BR>objNewMail.Send<BR>Response.write "Successfully sent the mail"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts