Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Mapi session question
Message
From
10/04/2001 19:35:54
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Mapi session question
Miscellaneous
Thread ID:
00494222
Message ID:
00494222
Views:
158
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
Map
View

Click here to load this message in the networking platform