Author |
|
jnwry Newbie
Joined: 10 July 2007
Online Status: Offline Posts: 1
|
Posted: 10 July 2007 at 10:24am | IP Logged
|
|
|
Hi, we're using php and we'd like to integrate Mailbee lite into our CMS.
How can we automate the login process?
Thanks,
John
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 11 July 2007 at 9:54am | IP Logged
|
|
|
We have prepared a script for this:
Code:
<?php
session_name("PHPWEBMAILSESSID");
session_start();
$_SESSION['wm_email'] = "demo@afterlogic.com";
$_SESSION['wm_login'] = "demo";
$_SESSION['wm_password'] = "demo";
$_SESSION['wm_inc_server'] = "mail.afterlogic.com";
$_SESSION['wm_inc_server_port'] = 110;
$_SESSION['wm_out_server'] = "mail.afterlogic.com";
$_SESSION['wm_out_server_port'] = 25;
$_SESSION['wm_out_server_auth'] = 1;
Header("Location: page.php");
?>
|
|
|
This sample starts session and specifies the following data which will
be used by WebMail Lite:
wm_email - Email
wm_login - POP3 Login
wm_password - POP3 Password
wm_inc_server - POP3 Server (Host)
wm_inc_server_port - POP3 Server Port
wm_out_server - SMTP Server (Host)
wm_out_server_port - SMTP Server Port
wm_out_server_auth - Use SMTP Authentication (0/1)
Then, it redirects the client's browser to page.php which is a part of
MailBee WebMail Lite PHP.
Thus, if your web application specifies the data above and then
redirects the client to page.php, the user will be logged into WebMail
Lite automatically bypassing its login screen.
Regards,
Alex
|
Back to Top |
|
|