On Error Resume Next oMail.AttachFile "c:\test.txt" if err.number<>0 then response.write err.description response.end end