Search The ForumSearch   RegisterRegister  LoginLogin

MailBee POP3

 AfterLogic Forum : MailBee POP3
Subject Topic: Limited Users ! Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 19 May 2004 at 9:57am | IP Logged Quote Guests

I want limited users to use webmail system due
to some restrictions from ISP. I've an idea
but don't know how to execute it.

1) Want to create another database called UserList and
   a login page to identify the authorised users.
For this :
   suppose an ASP page is there called Userlogin.asp
checking access database called Userlist.mdb
(TABLE FIELDS: Userid, PWD, POP3Userid, POP3Pwd). On Userlogin.asp there is two text box a) userid B)
password. What I want as soon as user enter there valid
user id and password at Userlogin.asp
( "THEY SHOULD BE ABLE TO DIRECTLY LOGIN TO INBOX
( LIST.ASP ) AUTOMATICALLY TAKING VALUES
FOR DEFAULT.ASP [EMAIL ID =POP3USERID, PASSWORD=POP3PWD]
AND LOGOUT SHOULD TAKE TO HOMEPAGE INSTEAD OF DEFAULT.ASP)
   Any help appreciated.


   

   
Back to Top View Guests's Profile Search for other posts by Guests
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 19 May 2004 at 11:18am | IP Logged Quote Alex

MailBee WebMail Pro supports integration of WebMail with another authentication system (your case).

Assume user has typed user_id and password on Userlogin.asp and clicked "Login". Also, assume that UserLogin.asp calls CheckUserLogin.asp on "Login" button click.

CheckUserLogin.asp may look like:

<!--#include file="path_to_webmail/integr.asp" -->

<%
' Values strEmail, strPOP3Login, strPOP3Password
' are hard-written here. You should take them from
' your database

strEmail = "login@domain.com"
strPOP3Login = "user"
strPOP3Password = "pass"

Set rUser = New RedirectUser
rUser.wm_email = strEmail
rUser.wm_login = strPOP3Login
rUser.wm_password = strPOP3Password
rUser.UserLogin()
%>

This will cause WebMail to skip login screen and immediately proceed to Inbox of given user (if it exists in WebMail Pro database).

More information on external authentication and RedirectUser object usage is available in WebMail Pro help system, "How to integrate WebMail into another system" topic (file is named "help/webmail_integration.html").

As for logout, you need to change logout URL in "functions_main.inc.asp" file (line 380) from "default.asp" to "my_own_page.asp" (or whatever you wish). In this ASP file ("my_own_page.asp" ), also paste 2 lines somewhere in the beginning:

Session("account") = ""
Session("host") = ""

These lines actually clear session information regarding current webmail user.

Please note that all of above applies to WebMail Pro only. If you're WebMail Lite user and you're interested in similar functionality please contact us by mailbee@iforum.com email.
Back to Top View Alex's Profile Search for other posts by Alex
 
Guests
Guest Group
Guest Group


Joined: 10 November 2003
Online Status: Online
Posts: 262
Posted: 20 May 2004 at 2:23am | IP Logged Quote Guests

Alex, thanks for reply !
Back to Top View Guests's Profile Search for other posts by Guests
 

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