>Hi there,
>
>I'm using the MSMAPI control to send email. When I attach a file and the
>default mail is OUTLOOK EXPRESS it works fine, but when I use OUTLOOK 2000 I
>get an error "OLE IDispatch exception code 0 from MAPIMessages: Unspecified
>Failure has occurred..". This is the code that I use:
>
>This.oleMMess.attachmentindex = 0
>This.oleMMess.attachmentName = lcFileName
>This.oleMMess.attachmentPathName = lcFilePath
>This.oleMMess.attachmentType = 0
>
>This code works with EXPRESS but not with OUTLOOK 2000, any ideas?
>
>Thanks!
Roy,
Have you created a MAPI.Session aswell and logged into that, and then set the session id on your message object.
Cheers,
Chris
Have a nice day :)