Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Cpanel Webmail Integration

Discussion in 'E-mail Discussion' started by walkinghome, Sep 16, 2011.

  1. walkinghome

    walkinghome Registered

    Joined:
    Sep 16, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Reseller Owner
    Hi Guys


    I have a website and would like to find a way to insert the webmail login on my page and have the user directly login to webmail. I found a code that add's the login but I would love for it to automatically add the domain name instead of having the user type in username@domain.com. Below is the code to insert the login on the page. How do I make it so I don't need to add domain.

    <div id="content-wrap"><form action="http://domain.com:2095/login/" method="post"> <input name="login_theme" type="hidden" value="cpanel" />
    <table class="login" style="width: 200px;" border="0" cellspacing="0" cellpadding="0">
    <tbody style="text-align: left;">
    <tr style="text-align: left;">
    <td style="text-align: left;"><strong>Login</strong></td>
    <td style="text-align: left;">&nbsp;</td>
    </tr>
    <tr style="text-align: left;">
    <td class="login_lines" style="text-align: left;">Email:</td>
    <td class="login_lines" style="text-align: left;"><input id="user" name="user" size="16" type="text" tabindex="1" /></td>
    </tr>
    <tr class="row2" style="text-align: left;">
    <td class="login_lines" style="text-align: left;">Password:</td>
    <td class="login_lines" style="text-align: left;"><input id="pass" name="pass" size="16" type="password" tabindex="2" /></td>
    </tr>
    <tr style="text-align: left;">
    <td style="text-align: left;" colspan="2"><input id="login" class="input-button" type="submit" value="Login" tabindex="3" /></td>
    </tr>
    </tbody>
    </table>
    <input name="goto_uri" type="hidden" value="/?login_theme=cpanel" /> </form> <br /> <br />
    <script type="text/javascript"><!--
    /* Must not include external javascript -jnk 06.20.09 */
    var init = function() {
    document.getElementById("user").value = '';
    document.getElementById("pass").value = '';
    document.getElementById("user").focus();
    };
    if( window.addEventListener ) {
    window.addEventListener('load',init,false);
    } else if( document.addEventListener ) {
    document.addEventListener('load',init,false);
    }
    // --></script>
    </div>


    Thanks..
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice