Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: Check Email Windows 2003 MAPI Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
insysnet
Newbie
Newbie
Avatar

Joined: May 09 2006
Location: United Kingdom
Online Status: Offline
Posts: 18
Posted: May 09 2006 at 06:25 | IP Logged Quote insysnet

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 View insysnet's Profile Search for other posts by insysnet Visit insysnet's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: May 09 2006 at 07:16 | IP Logged Quote TonyNo

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 View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
insysnet
Newbie
Newbie
Avatar

Joined: May 09 2006
Location: United Kingdom
Online Status: Offline
Posts: 18
Posted: May 09 2006 at 07:31 | IP Logged Quote insysnet

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 View insysnet's Profile Search for other posts by insysnet Visit insysnet's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: May 11 2006 at 15:14 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
insysnet
Newbie
Newbie
Avatar

Joined: May 09 2006
Location: United Kingdom
Online Status: Offline
Posts: 18
Posted: May 12 2006 at 06:13 | IP Logged Quote insysnet

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 View insysnet's Profile Search for other posts by insysnet Visit insysnet's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: May 12 2006 at 12:48 | IP Logged Quote dhoward

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 View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum