T
Tagman
After I do the following action:
gCdoSession = CreateObject("MAPI.Session")
I got the following popup box.
"Either there is no default mail client or the current mail client
cannot fulfill the messaging request. Please run Microsoft Outlook and
set it as the default mail client."
And gCdoSession.logon will fail because gCdoSession is nothing.
When the user's default mail client is not Outlook and create
MAPI.Session object, that popup message will come and cannot use
MAPI.Session. It forces me to use Outlook object, however, its speed is
very slow, especially, I got so many contact(located in local hard disk,
nothing related to exchange) I need to process. Any solution on it?
is there any profile for local outlook without any exchange server?
Does anyone have some sample code to find the profile and login to that
profile?
Because I tried this:
gCdoSession.Logon("Microsoft Outlook Internet Settings", "", False, True, 0)
because I found the DefaultProfile from the registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles
is "Microsoft Outlook Internet Settings", therefore, I try to do the
logon to the profile with same name. Of course I cannot, because the
gCdoSession is nothing.
Regards,
Tony
gCdoSession = CreateObject("MAPI.Session")
I got the following popup box.
"Either there is no default mail client or the current mail client
cannot fulfill the messaging request. Please run Microsoft Outlook and
set it as the default mail client."
And gCdoSession.logon will fail because gCdoSession is nothing.
When the user's default mail client is not Outlook and create
MAPI.Session object, that popup message will come and cannot use
MAPI.Session. It forces me to use Outlook object, however, its speed is
very slow, especially, I got so many contact(located in local hard disk,
nothing related to exchange) I need to process. Any solution on it?
is there any profile for local outlook without any exchange server?
Does anyone have some sample code to find the profile and login to that
profile?
Because I tried this:
gCdoSession.Logon("Microsoft Outlook Internet Settings", "", False, True, 0)
because I found the DefaultProfile from the registry:
HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
Messaging Subsystem\Profiles
is "Microsoft Outlook Internet Settings", therefore, I try to do the
logon to the profile with same name. Of course I cannot, because the
gCdoSession is nothing.
Regards,
Tony