Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite 7

 AfterLogic Forum : AfterLogic WebMail Lite 7
Subject Topic: Login to mailbox directly from other app Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
mythri
Newbie
Newbie


Joined: 20 January 2015
Location: India
Online Status: Offline
Posts: 4
Posted: 23 January 2015 at 7:51pm | IP Logged Quote mythri

I have a web application and i want to integrate webmail Lite with that. User will login to the application , once he clicks on webmail, ite has to bypass the login screen and automatically should login to that email account and redirect to mail box.

I tried following this the instructions from http://www.afterlogic.com/wiki/Logging_in_programmatically_%28WebMail_Lite%29

I have changed the username and password in webmail/examples/login-to-account.php page like this

if (class_exists('CApi') && CApi::IsValid())
     {
          // data for logging into account
          $sEmail = 'name@mydomain.com';
          $sPassword = 'mypassword';

But it is not working.

Please help me where i need to change
Thanks
Back to Top View mythri's Profile Search for other posts by mythri
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 24 January 2015 at 2:49am | IP Logged Quote Alex

"It is not working" - please be more specific. Does it crash? Or does it return a error? If error, what's in the error message? Or maybe you don't get any error but get the result different from what you expected?

Also, what's in WebMail log file (don't forget to set Debug level when configuring logging in Admin Panel / System / Logging)?

Regards,
Alex
Back to Top View Alex's Profile Search for other posts by Alex
 
mythri
Newbie
Newbie


Joined: 20 January 2015
Location: India
Online Status: Offline
Posts: 4
Posted: 24 January 2015 at 3:31am | IP Logged Quote mythri

As i explained, i want to bypass the login page and directly go to mailbox after logging into my web application. For that i made those changes which was there in the above (my previou post) mentioned thread.

But even after providing login credentials directly in webmail/examples/login-to-account.php , it still lands in login page actually it has to go to mailbox without asking the login credentials once again. In log also it doesn't show any error for this right? so log file is clear.

I am following http://www.afterlogic.com/wiki/Logging_in_programmatically_%28WebMail_Lite%29
Back to Top View mythri's Profile Search for other posts by mythri
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 26 January 2015 at 3:54am | IP Logged Quote Igor

Are you able to log into that WebMail installation using the same credentials you supply in the code? The behavior you describe sounds like a problem with the installation itself.

--
Regards,
Igor, AfterLogic Support
Back to Top View Igor's Profile Search for other posts by Igor
 

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

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide