| Author |  | 
      
        | Guests Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          I want limited users to use webmail system due
           | Posted: 19 May 2004 at 9:57am | IP Logged |   |  
           | 
 |  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 |     | 
       
       
        |  | 
        | Alex AfterLogic Support
 
  
  
 Joined: 19 November 2003
 Online Status: Offline
 Posts: 2207
 | 
          MailBee WebMail Pro supports integration of WebMail with another authentication system (your case).
           | Posted: 19 May 2004 at 11:18am | IP Logged |   |  
           | 
 |  
 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 |     | 
       
       
        |  | 
        | Guests Guest Group
 
  
 
 Joined: 10 November 2003
 Online Status: Online
 Posts: 262
 | 
          Alex, thanks for reply !
           | Posted: 20 May 2004 at 2:23am | IP Logged |   |  
           | 
 |  | 
       
        | Back to Top |     | 
       
       
        |  |