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.

Webmail access

Discussion in 'E-mail Discussions' started by lamp, Jul 25, 2005.

  1. lamp

    lamp Well-Known Member

    Joined:
    Dec 22, 2003
    Messages:
    111
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    The question that I have pertains to accessing webmail for a particular domain.

    Usually, when a user on domain www.example.com wants to access their webmail, they must go to www.example.com/webmail and supply their full email address and associated password.

    Since the user must enter their full email address as their username, would it be possible for them to access their webmail without going to www.example.com/webmail but rather webmail.mainserver.com (where mainserver.com is the hosting server's address)? I want to enable my users to access their webmail via a simple web form (without requiring a field for their domain name).

    Let me know what your thoughts are or if you need clarification on what I am trying to do.

    Thanks.
    Lamp.
     
  2. ctbhost

    ctbhost Well-Known Member

    Joined:
    May 31, 2002
    Messages:
    139
    Likes Received:
    0
    Trophy Points:
    16
  3. dan_c

    dan_c Active Member

    Joined:
    Jul 23, 2005
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    sounds good but (edit; nvm)
     
    #3 dan_c, Jul 25, 2005
    Last edited: Jul 26, 2005
  4. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    your both wrong 2095 non ssl 2096 ssl



    here you go simple php log in form place it in any php page


    <table align="center" border="0" cellpadding="25" cellspacing="0">

    <p align="left">&nbsp; </p>
    <td align="left">
    <p align="left">
    <font size="+1" color="#0000a0">Webmail Login</font></p>
    <?php
    if ($_GET['mfailed'] == "1") {
    ?>
    <p align="left"> <font color=#ff0000></font></p>
    <?php
    }
    print "<form action=\"https://" . $_SERVER['HTTP_HOST'] . ":2096/login/\" method=\"post\">";
    ?>
    <p align="left">
    <b>Username: </b><input type="text" name="user" size="10"><br>
    <b>Password: </b><input type="password" name="pass" size="12"><br>

    <input type="submit" value=" Login ">
    </p>
    </td></tr>
    </table>
     
    #4 dalem, Jul 26, 2005
    Last edited: Jul 26, 2005
Loading...

Share This Page