Sending Attachments through ASP ("CDONTS")Object

Results 1 to 2 of 2

Thread: Sending Attachments through ASP ("CDONTS")Object

  1. #1
    Join Date
    Dec 1969

    Default Sending Attachments through ASP ("CDONTS")Object

    Hi ,<BR><BR>I have some trouble with the proper syntax of the attachment code of the ASP ("CDONTS.NewMail") object following is my code:<BR><BR>Set oMail=Server.CreateObject("CDONTS.NewMail") oMail.MailFormat=0 <BR> oMail.BodyFormat=0<BR> oMail.From = ""<BR> oMail.To="Reciver" <BR> oMail.Subject="Testing" <BR> oMail.Body="Short Message"<BR> oMail.AttachFile "c:mytext.txt" <BR> oMail.Send<BR> Set oMail=Nothing<BR><BR><BR>should this work,<BR>Please Help.<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Sending Attachments through ASP (

    Yes it will work, but remember c:mytext.txt is a file on the SERVER and not on the client.<BR><BR>"Reciver" must be ""

Posting Permissions

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