AttachFile using CDONTS

Results 1 to 2 of 2

Thread: AttachFile using CDONTS

  1. #1
    Join Date
    Dec 1969

    Default AttachFile using CDONTS

    When add the code to attach a file to an email using CDONTS I get the following error:<BR><BR>error &#039 80004005&#039 <BR>Unspecified error <BR><BR>The error is in the line containing the AttachFile command. I have full permisions on the folder and the path is correct. Can anyone help?<BR>Dim objCDO, MessageBody<BR>Set objCDO = Server.CreateObject("CDONTS.NewMail")<BR>objCDO.Va lue("content-type")="text/html"<BR>objCDO.To = ""<BR>objCDO.From = ""<BR>objCDO.BodyForma t = 0<BR>objCDO.MailFormat = 0<BR>objCDO.Body = "Test , Test, Test"<BR>objCDO.AttachFile "i:serversample_sitesmailtestlogo.txt", "logo.txt"<BR>objCDO.Send<BR>Set objCDO = Nothing

  2. #2
    Join Date
    Dec 1969

    Default RE: AttachFile using CDONTS

    Is i: a mapped drive on your system? You might have to put the URI something like<BR><BR>\servernamefolderfilename.txt<BR><BR>i nstead of the mapped letter i: (which is specific to your computer). Just a guess.

Posting Permissions

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