Author |
|
mythri Newbie
Joined: 20 January 2015 Location: India
Online Status: Offline Posts: 4
|
Posted: 23 January 2015 at 7:51pm | IP Logged
|
|
|
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 |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 24 January 2015 at 2:49am | IP Logged
|
|
|
"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 |
|
|
mythri Newbie
Joined: 20 January 2015 Location: India
Online Status: Offline Posts: 4
|
Posted: 24 January 2015 at 3:31am | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 26 January 2015 at 3:54am | IP Logged
|
|
|
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 |
|
|