Author |
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: May 09 2006 at 06:25 | IP Logged
|
|
|
I am running PowerHome 1.03.4.7 on Windows 2003 Server (it's actually an SBS 2003 installation) that includes Exchange 2003.
I have installed Outlook 2003 as a client and setup a MAPI profile. I can send and receive from Outlook fine from the user profile under which PowerHome runs - there are no prompts or login dialog boxes.
However, when I run the ph_checkemail function - PowerHome shuts down. When I run the ph_checkemailthread(1,30) - I get a return code of -1.
I've searched the forums and checked through or checkemail or email issues and can't find anything matching.
Any ideas anyone?
__________________ Richard
|
Back to Top |
|
|
TonyNo Moderator Group
Joined: December 05 2001 Location: United States
Online Status: Offline Posts: 2889
|
Posted: May 09 2006 at 07:16 | IP Logged
|
|
|
From the ph_processemailthread() help...
Returns a 1 if an error occurs while logging into the mail system. ... Error values of -1 thru -5 are equivalent to their positive counterparts but means that the function timed out while waiting for the MAPI client to respond. This most likely means that the MAPI client helper application is hung waiting for some form of user response.
You don't see some sort of dialog popping up?
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: May 09 2006 at 07:31 | IP Logged
|
|
|
No dialogs.
Initially I got the usual message about not running Outlook on Windows Server 2003 - however, I checked the "Don't show me this again" check box and now there are no dialogs when launching Outlook - just straight in.
I've rebooted the server to be sure - but still get the same -1 returned from ph_processemailthread().
__________________ Richard
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 11 2006 at 15:14 | IP Logged
|
|
|
Richard,
The -1 means that the ph_processemailthread timed out while trying to login to your default MAPI client.
The first thing to check is to verify your settings in the in the Email setup screen of the PowerHome Explorer. This is under PowerHome->Setup->Email. Make sure that you've got "Enable Control via Email" checked and that you've declared a valid MAPI Client Login and MAPI Client Password. If you make any changes to this screen, you must Reinitialize or Restart PowerHome.
Let me know,
Dave.
|
Back to Top |
|
|
insysnet Newbie
Joined: May 09 2006 Location: United Kingdom
Online Status: Offline Posts: 18
|
Posted: May 12 2006 at 06:13 | IP Logged
|
|
|
Thanks - I've checked the setting and "Enable Control via Email" is checked - I've tried it with both the client login with the domain and without, plus I've even blanked the password on the server, just to rule that out - again no joy.
What I've done now is moved the whole system over to another computer that I'm going to dedicate to home automation - maybe the next part should be under a new thread...
I've managed to get the MAPI client working on this computer, but I have to have Outlook running for it to work. I'm using a Microsoft Exchange Server mail connector - I wonder if that is what's making the difference?
If I run Outlook it launches with no dialogs, however, if I attempt to run the ph_processemailthread() the standard Windows select mail profile dialog box appears - even though I check "always use this profile" - it still throws up the dialog box when Outlook is not running.
I only have one mail profiles on the computer and it's set to the default. It only contains two components - the Exchange Server connector and the Outlook Address book.
I'm very puzzled, but as running Outlook and PowerHome at startup is not a problem on this dedicated machine, I have a workaround for the moment.
Thanks for your advice
__________________ Richard
|
Back to Top |
|
|
dhoward Admin Group
Joined: June 29 2001 Location: United States
Online Status: Offline Posts: 4447
|
Posted: May 12 2006 at 12:48 | IP Logged
|
|
|
Richard,
I'll do some investigating on my end as well. Microsoft has made so many "security patch" changes that things don't always work like they once used to.
Dave.
|
Back to Top |
|
|