email attachment cdonts

Results 1 to 2 of 2

Thread: email attachment cdonts

  1. #1
    Join Date
    Dec 1969

    Default email attachment cdonts

    --------------------------------------------------------------------------------<BR>I am getting the error below whenever I add the line to attach a file. I am trying to create a page when the user browses to a file to attach (that works fine) but when ever I try to attach the file I get this error. Any suggestions.<BR><BR>Error Type:<BR>(0x80004005)<BR>Unspecified error <BR>/forms/edit/kb/test.asp, line 16<BR><BR><BR><BR>Dim objMail<BR>Set objMail = Server.CreateObject("CDONTS.NewMail")<BR><BR>objMa il.From = ""<BR>objMail.Subject = "A message TO you"<BR>objMail.AttachFile("C:logo.bmp")<BR>objMai l.To = ""<BR>objMail.Body = "This is the body of the Message"<BR>objMail.Send<BR><BR>Response.write("Ma il was Sent")<BR><BR>&#039;You should always do this with CDONTS.<BR>set objMail = nothing

  2. #2
    Join Date
    Dec 1969

    Default RE: email attachment cdonts

    Do you actually UPLOAD the file to the server? That "C:logo.bmp" - is that a physical file on the server, or is it a file that the user has "selected"?!<BR><BR>Craig.

Posting Permissions

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