设为首页 - 加入收藏
广告 1000x90
您的当前位置:主页 > 网站运营 > 正文

企业邮局在网站中直接登陆代码

来源:网络分享 编辑:引流技巧 时间:2026-01-26

现在有些公司为了提升自己的企业形象,是有购买企业邮局的。但是有一个头疼的问题来了,如何能让员工通过企业官方的网站直接登陆进入自己的企业邮箱呢?我司的3.0版邮局是有支持网站首页登陆的,下面实创科技就分享一下相关的代码,大家只要将mail.2776.net替换成自己的企业邮局的地址即可。

企业邮箱

<html>

<body>

<title>欢迎使用3.0邮局系统</title>

<script>

function c35login(){

        var username  = document.getElementById("username").value;

        if (username == null || username==''){

          return;

        }

        var password  = document.getElementById("password").value;        

        if (password == null || password==''){

          return;

        }

        if ( username.indexOf("@")==-1){

          return;

        }

        var domain = username.split("@")[1];

        document.getElementById("service").value='http://mail.'+domain+'/Sofia.jsp';

        document.getElementById("c35loginform").submit();

}

</script>

<div class="loginform">

        <form id="c35loginform" name="35.cn" action="http://mail.2776.net/accounts/verifylogin" method="post">

        <input type="hidden" id="service" name="service" value="" />        

        <input type="hidden" id="system" name="system" value="mail" />

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

                        <tr>

                                <th align="right">用户名</th>

                                <td><input id="username" name="username" type="text" maxlength="50" tabindex="1" autocomplete="off" value="" class="login_input"><font font="12px"> &nbsp;(请输入全称如:user@2776.net)</font></td>

                        </tr>

                        <tr>

                                <th align="right">密码</th>

                                <td><input id="password" name="password" type="password" tabindex="2" class="login_input" style="font-size:18px;"></td>

                        </tr>

                        <tr>

                <th></th>

                                <td><input type="button" value="登录" onclick="c35login();" class="login_btn"></td>

                        </tr>

                </table>

        </form>

</div>

</body>

</html>

相关推荐:

栏目分类

微商引流技巧网 www.yinliujiqiao.com 联系QQ:1716014443 邮箱:1716014443@qq.com

Copyright © 2019-2024 强大传媒 吉ICP备19000289号-9 网站地图 rss地图

Top