The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Email login

Discussion in 'E-mail Discussions' started by ryno267, Mar 25, 2004.

  1. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    is there a way to make the server STOP asking for the whole email address as the username?
    Instead I'd rather have just the username as the login instead of the whole email...

    What are the pros and cons of doing it this way?

    thanks
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    I assume you're talking about webmail.


    if you log in to http://ipaddress:2095, how does it know which domain you're trying to use?
     
  3. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    I know about that.. but i was wondering if anybody had a work around.
     
  4. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    You could do something with php + javascript. Just put this file on the domain that you want to login to webmail on. No changes necessary Or make it available on every domain in httpd.conf.

    PHP:
    <?php
    $server 
    explode("."$_SERVER["SERVER_NAME"]);
    $domain $server[count($server)-2].".".$server[count($server)-1];
    ?>
    <FORM name="wmail" action="http://<?=$domain?>:2095/login" onsubmit="document.wmail.user.value = document.wmail.user.value + '@'+'<?=$domain?>'; return true;" method="post">
    First Part of email address:<INPUT type=text name="user">
    Password:<INPUT type=password name="pass">
    <INPUT type=submit value="Login to webmail">
    </FORM>
     
Loading...

Share This Page