Problem w. AttachFile method

Results 1 to 2 of 2

Thread: Problem w. AttachFile method

  1. #1
    Mark Guest

    Default Problem w. AttachFile method

    error &#039 80004005&#039<BR>Unspecified error<BR><BR>Above error occurs when I try using the FileAttach method of the CDONTS NewMail object. I can&#039t find any reference to this error (when using "FileAttach") at Microsoft&#039s tech site. Are write permissions required? The code is basic here it is:<BR><BR> Set objNewMail = Server.CreateObject("CDONTS.NewMail")<BR> objNewMail.From = mailsender<BR> objNewMail.To = mailrec<BR> objNewMail.Subject = mailsubject<BR> objNewMail.Body = mailmessage<BR> objNewMail.BodyFormat = CdoBodyFormatText<BR> objNewMail.MailFormat = CdoMailFormatText<BR> objNewMail.Importance = CdoNormal<BR> <BR> If len(mailattachment) &#062; 0 then<BR> objNewMail.MailFormat = CdoMailFormatMime<BR> objNewMail.AttachFile mailattachment,,0<BR> end if<BR> objNewMail.Send<BR> Set objNewMail = Nothing

  2. #2
    Rob Guest

    Default RE: Problem w. AttachFile method

    Take a look at this and see if it helps<BR><BR><BR>I am aware of no permission violations doing this but that does not mean that there are.

Posting Permissions

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