Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MAPI Sign On Problems
Message
From
28/10/1997 14:50:26
 
 
To
28/10/1997 12:44:33
Rob Gordon
Xon Digital Communications Ltd.
Dartmouth, Nova Scotia, Canada
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
00057024
Message ID:
00057058
Views:
26
>I'm having trouble establishing a MAPI session. When I use the .Signon method I always get a "Invalid Profile" message and it shos a "Select Profile" pulldown menu. There is only one profile set up on the computer and it is the default.
>
>eg.
>
>oMapiS.UserName=
>oMapiS.Password=
>oMapiS.DownLoadMail=.f.
>oMapiS.SignOn
>
>This is where I get the error. The error goes away if the Windows Messaging program is already running. It works fine otherwise. Of course, Windows Messaging is a real pig memory-wise and takes forever to load.
>
>HELP !!

Rob,
I had the same problem using mapi. This is what I did was before calling the signon method, I look in the registry for the default
profile name and set the mapi username property to that value. This seems to have done the trick. Let me know if you need help with reading from the registry. Here are the registry keys in question:

Windows NT
HKey_Current_User\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\DefaultProfile

Windows 95
HKey_Current_User\Software\Microsoft\Windows Messaging Subsystem\Profiles\DefaultProfile

Corey
Corey A. Rector
Ensite Inc.
Omaha, NE

** If you've got the time, we've got the beer. **
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform