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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cpanel Webmail Integration

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

  1. walkinghome

    walkinghome Registered

    Sep 16, 2011
    Likes Received:
    Trophy Points:
    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 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="" 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 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 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 style="text-align: left;">
    <td style="text-align: left;" colspan="2"><input id="login" class="input-button" type="submit" value="Login" tabindex="3" /></td>
    <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 = '';
    if( window.addEventListener ) {
    } else if( document.addEventListener ) {
    // --></script>


Share This Page