Problems with .attachFile using CDONTS

Reply

Join Date: Jun 2006
Posts: 35
Reputation: gil857 is an unknown quantity at this point 
Solved Threads: 0
gil857's Avatar
gil857 gil857 is offline Offline
Light Poster

Problems with .attachFile using CDONTS

 
0
  #1
Apr 10th, 2007
I'm having trouble sending an email when I use .AttachFile - below is the code that I am using:

  1. Dim objMail
  2. Set objMail = Server.CreateObject("CDONTS.NewMail")
  3.  
  4. objMail.From = fromAddress
  5. objMail.Subject = "Form Requested"
  6. objMail.To = toAddress
  7. objMail.Body = "message"
  8. objMail.AttachFile (path)
  9. objMail.Send
  10.  
  11. set objMail = nothing

If I disable the
  1. 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
Last edited by gil857; Apr 10th, 2007 at 11:38 am.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC