944,144 Members | Top Members by Rank

Ad:
  • ASP Discussion Thread
  • Unsolved
  • Views: 2098
  • ASP RSS
Apr 10th, 2007
0

Problems with .attachFile using CDONTS

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

ASP Syntax (Toggle Plain Text)
  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
ASP Syntax (Toggle Plain Text)
  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.
Similar Threads
Reputation Points: 11
Solved Threads: 0
Light Poster
gil857 is offline Offline
35 posts
since Jun 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in ASP Forum Timeline: ASP.net Hosting Urgent
Next Thread in ASP Forum Timeline: Retaining radio button value during paging





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC