Problem with CDO Attachfile

Results 1 to 2 of 2

Thread: Problem with CDO Attachfile

  1. #1
    Join Date
    Dec 1969

    Default Problem with CDO Attachfile

    The send works without Attachfile, but as soon as I put it in, it fails. I have tried it loads of different ways. Any Ideas!<BR><BR>objCDOMail.From = "MetaCheck &#060;;"<BR>objCDOMail. To = strTo<BR>objCDOMail.Subject = strSubject<BR>objCDOMail.Body = strBody<BR>objCDOMail.AttachFile "", "metacheck.pdf"<BR>objCDOMail.Send

  2. #2
    Join Date
    Dec 1969

    Default RE: Problem with CDO Attachfile

    According to the ASPFAQ for this, you must specify the file name using a physical path. If this is local use the .MapPath method to convert a virtual path to physical.<BR><BR>CDONTS_Object.AttachFile(Physical _Path_to_File, English_Name_For_File)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts