lparameter pcFileName if ( this.oleMAPISession.SessionID = 0 ) return endif local i this.txtStatus.Value = "Attaching:" + pcFileName with this.oleMAPIMessages this.mnAttachmentCount = this.mnAttachmentCount + 1 dimension this.maAttachments[this.mnAttachmentCount] .AttachmentIndex = this.mnAttachmentCount - 1 .AttachmentPathName = pcFileName i = rat( "\", pcFileName ) this.maAttachments[this.mnAttachmentCount] = substr( pcFileName, i+1 ) .AttachmentName = this.maAttachments[this.mnAttachmentCount] .AttachmentType = 0 endwith>I am trying to attach a file to email, but I keep getting that error that the Attachment is not found even though it really is there. Here is my code: