gil857 0 Light Poster

I'm having trouble sending an email when I use .AttachFile - below is the code that I am using:

Dim objMail
  Set objMail = Server.CreateObject("CDONTS.NewMail")
 
     objMail.From = fromAddress
     objMail.Subject = "Form Requested"     
     objMail.To = toAddress
     objMail.Body = "message"
     objMail.AttachFile (path)
     objMail.Send
 
  set objMail = nothing

If I disable the

objMail.AttachFile(path)

it works fine. When I enable that bit of code, it produces no errors, but I never receive the email at all.

Any one have any ideas what may be causing this? Any help is greatly appreciated. :mrgreen:

Gil