General information
Title:
Mapi session question
I am trying to send an attachment file using MSMAPI.
I disable AttachmentIndex, attachmentPosition, attachmentType, attachmentPathName and attachmentName and work. But when I enable them i receive the following error message:
OLE IDispatch exception code 0 from MAPIMessages: Unspecified failure has occured.
Can anybody help me... Thanks in advance.
My code is this
If .LogSession
.OleMMess.sessionid=.OleMSess.sessionid
.OleMMess.compose
.OleMMess.msgnotetext= _screen.ActiveForm.gcMensaMail
.OleMMess.MsgIndex = -1
For i = 1 to aLen(_screen.ActiveForm.gaDesti)
.OleMMess.RecipAddress = _screen.ActiveForm.gaDesti[i]
.OleMMess.msgsubject= _screen.ActiveForm.gcSubject
.OleMMess.AttachmentIndex = .OleMMess.AttachmentCount + 1
* .OleMMess.AttachmentPosition = len(_screen.ActiveForm.gcMensaMail)
* .OleMMess.AttachmentType=0
* .OleMMess.AttachmentPathName = _screen.ActiveForm.gcAttachPath
.OleMMess.AttachmentName = _screen.ActiveForm.gcAttachName
.OleMMess.send(0)
Next i
If .LogSession
.OleMSess.signoff
Endif
Endif
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only