Attachments to email

Results 1 to 2 of 2

Thread: Attachments to email

  1. #1
    Join Date
    Dec 1969

    Default Attachments to email

    I want to have attachments sent with the email. This is the code.<BR>(myfile contains the path of the file that I want to attach)<BR><BR>set mymail = Server.CreateObject("CDONTS.NewMail")<BR>mymail.Fr om = ""<BR>mymail.To = ""<BR>mymail.AttachFile myfile<BR>mymail.Subject = "This is a test"<BR>mymail.Body = "this is a test"<BR>mymail.Send<BR><BR>This code gives me the following error:<BR>error &#039 80004005&#039 <BR>Unspecified error for the attchfile line of the code.<BR><BR>Could someone help. Thanks<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Attachments to email

    Make sure you are using the right path a syntax like this:<BR><BR>mymail.Attachfile("d:inetpub

Posting Permissions

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