CDONTS and file attachments

Results 1 to 3 of 3

Thread: CDONTS and file attachments

  1. #1
    Join Date
    Dec 1969

    Default CDONTS and file attachments

    I have used CDONTS many times but never attaching files to the emails. Can anyone explain how this works. I use this line of code:<BR>objSendMail.AttachFile "C:users.html", "users.html"<BR><BR>but this does not work?<BR><BR>thanks <BR>mike

  2. #2
    Dilip Guest

    Default RE: CDONTS and file attachments

    &#060;%<BR> Option Explicit<BR> <BR> Dim objMail<BR> Set objMail = Server.CreateObject("CDONTS.NewMail")<BR> <BR> objMail.From = ""<BR> objMail.Subject = "A message TO you"<BR> objMail.AttachFile("d:pic.gif")<BR> objMail.To = ""<BR> objMail.Body = "This is the body of the Message"<BR> objMail.Send<BR> <BR> Response.write("Mail was Sent")<BR> <BR> &#039;You must always do this with CDONTS. You should <BR> &#039;do it anyway.<BR> set objMail = nothing<BR> %&#062;<BR>

  3. #3
    Join Date
    Dec 1969

    Default did that

    I receive "page cannot be displayed". When I comment out the attchment line, it works fine?<BR><BR>mike

Posting Permissions

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