Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Pro

 AfterLogic Forum : AfterLogic WebMail Pro
Subject Topic: mailbee integrate in CMS Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jnwry
Newbie
Newbie


Joined: 10 July 2007
Online Status: Offline
Posts: 1
Posted: 10 July 2007 at 10:24am | IP Logged Quote jnwry

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 View jnwry's Profile Search for other posts by jnwry
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 11 July 2007 at 9:54am | IP Logged Quote Alex

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

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