Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: errors sending with CDONTS


Message #1 by "vauneen" <vauneen@m...> on Thu, 13 Mar 2003 10:03:23
hi,
how can i find out if the email i sent using CDONTS failed? there doesnt 
seem to be any errors to catch?
here's my code:
	
On Error Resume Next

Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
MyCDONTSMail.From= "from@a..."
MyCDONTSMail.Subject= "Subject"
MyCDONTSMail.Body= "content"
MyCDONTSMail.To="vauneen@m..."
MyCDONTSMail.Send  
set MyCDONTSMail=nothing

'try catch the error
If Err Then
 Response.Write "Errors Occurred: "
End If

any help appreciated,
vauneen

  Return to Index