>>>>>Hi Nadya,
>>>>>
>>>>>I'm not sure if it's relevant to your situation but I have the same problem with Microsoft exchange client.
>>>>>The name you pass to CreateSession method of MAPI class has to be the name of existing MAPI profile not the name of user or computer.
>>>>
>>>>Sergey,
>>>>
>>>>Could you please tell me how exactly had you solved this problem? To be honest, firstly, it's not my application, secondly, we just took the existing Nigel's class and used it without changing it or looking too deeply in the code. It works great with GroupWise with exception of this annyoing problem. I tried Bella's class, but could not make it work in my brief tests, so I abandoned this idea.
>>>
>>>I passed the name of existing MAPI profile I want to use as the first parameter to CreateSession method of MAPI class.
>>
>>This lead to the question: how did you get this profile name? I found these lines:
>>
>>* Create session and sign on
>>lnSessionID=THIS.CreateSession(lcUserName,lcPassword,llFetchMessages).
>>
>>And we invoke this class without first two parameters, so now it's clear, why we had this error.
>
>I guess, I can combine Bella's class with Nigel's, but may be you know a simple API call to get all available profiles?
>
>Thanks again in advance.
>
>
I just tested Bella's class on my computer and it works.My guess is that you don't have any profiles created on your pc.
--sb--