Web Hosting Talk







View Full Version : cpanel and neomail (webmail) login questions


kloh
12-30-2001, 05:18 PM
My host uses cpanel and neomail for webmail. It is a name-based account so the problem I have with it is, the only way an end user can access the webmail is to log-in with his/her full email address (instead of just username)

One solution I have is to create my own index page at a subdomain (mail.mydomain.com) where I create my own login page and the user is promted for their username. I then need to have a script that opens the following URL, where the "user" portion of the URL is taken from the form-based login screen:

http://user@mydomain.com:2095/user+mydomain.com/neomail.pl

Furthermore, once that URL is entered into the browser, I will receive a popup that asks for username and password again. However, at that point, at least the username doesn't have to be the full email address.

This is where I need help. Does anyone know how to code this form? Or perhaps code a form that will include the password as well so the popup doesn't appear?

CD Burnt
12-30-2001, 09:07 PM
This "complete email address" login bugs me, too. Every time I log in. Even though the domain name is in the web address of the login page, I have to type it in anyway. I wonder if the submit(login) button could be coded to insert the domain name.

One of my hosts uses a webmail system that only needs username/password to login. I definitely prefer that system.

Evelyn
12-30-2001, 11:29 PM
I don't know if javascript can do it, but I'm pretty sure PHP can. How? Uhh .. ask someone else. :D I just think it can be done.

kloh
12-31-2001, 12:15 AM
I'm glad I'm not the only one annoyed by this... hopefully, someone has a solution!!!

kloh
12-31-2001, 08:53 PM
Thanks to my cousin Dave, here's a script that does exactly what I had hoped (except for the password submission):

<html>
<head>
<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript">
<!--
function openPage() {
var userName = document.forms["DaveForm"].usernamefield.value;
var newURL = "http://"+userName+"@yourdomain.com:2095/"+userName+"+yourdomain.com/neomail.pl";
this.window.location=newURL;
}
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<form name="DaveForm" method="post" action="">
<p>ENTER USERNAME
<input type="text" name="usernamefield">
<input onclick=openPage(); type="button" name="DaveButton" value="Submit My Username">
</p>
</form>
</body>
</html>

ebird
01-01-2002, 03:00 AM
I think the problem for this is the user can't change the password when they want. Otherwise, I really want to offer some pretty pop3 accounts for my friends.

kloh
01-01-2002, 03:02 AM
I agree... the lack of user-controlled passwords is definitely a bad thing.