this.parent.OleMMess.Attachments.Add("Temata.txt",0,,lcTempP+"\Temata.txt") *Set objAttachment = objAttachColl.Add( [ name] [, position] [, type] [, source ] ) *Type - Optional. Long. The type of attachment; either mapiFileData = 1, mapiFileLink = 2, mapiOLE = 3, or mapiEmbeddedMessage = 4. The default value is CdoFileDataMartinJ
>* Verify that a table is open in the current work area > IF !this.parent.signon() && Use the custom method > RETURN > ENDIF > IF this.parent.LogSession && Check if the user was able to login > this.parent.OleMMess.sessionid=this.parent.OleMSess.sessionid > > * Start a new mail message and build the text > this.parent.OleMMess.compose > THIS.PARENT.OleMMess.recipdisplayname=this.Parent.c_recip > this.parent.OleMMess.msgnotetext=this.Parent.c_context > this.parent.OleMMess.msgsubject=this.Parent.c_subj > this.parent.OleMMess.attachmentname="ADD.TXT" > this.parent.OleMMess.attachmentpathname="d:\\dtd40x" > this.parent.OleMMess.send(1) > > IF this.parent.logsession > this.parent.OleMSess.signoff > ENDIF && Session Handle test > ENDIF && Login Test >>