Author |
|
drneamati Newbie


Joined: 13 December 2010 Location: France
Online Status: Offline Posts: 2
|
Posted: 13 December 2010 at 1:31pm | IP Logged
|
|
|
Hi.
I have download Webmail Lite and installed it on my web server.
I want to integrate it with my web site application.thus due to documentation , i code in php:
include($_SERVER['DOCUMENT_ROOT'].'/webmail/integr.php');
$Integr = new CIntegration('http://webmail.foroshandegan.com/');
if (!$Integr->UserLoginByEmail('info@foroshandegan.com','inf o@foroshandegan.com', START_PAGE_IS_MAILBOX))
{
echo 'Error: failed to log into the account. Reason: ' . $Integr->GetErrorString();
}
login process succeefully done(username/password accepted without error) but it show below error message and didn't show mailbox , insteadt it show login form again:
The previous session was terminated due to a timeout.
what is wrong?
|
Back to Top |
|
|
Igor AfterLogic Support

Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6122
|
Posted: 14 December 2010 at 12:29am | IP Logged
|
|
|
According to the code sample you provided, the account password was not supplied, so it could be that WebMail lets you in but can't establish a session. Try supplying a password in integration method call, does that help?
Do you encounter session errors when entering WebMail interface via standard login screen?
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
drneamati Newbie


Joined: 13 December 2010 Location: France
Online Status: Offline Posts: 2
|
Posted: 23 December 2010 at 11:07pm | IP Logged
|
|
|
thanks
i found my fault and also solution.
my script was outside if webmail folder and it made this error.
i moved it to webmail folder and problem solved.
thanks for your assistant.
|
Back to Top |
|
|