国产在线愉拍视频_亚洲人片在线观看天堂无码_国产一区二区精选_麻豆av免费观看

關(guān)閉X

在線留言自動郵件提醒短信提醒

發(fā)布時間:2014年12月01日    作者:佚名   key:點擊:
很多網(wǎng)站都有留言反饋功能,有的朋友還有多個網(wǎng)站,但是卻很少登錄網(wǎng)站后臺查看反饋信息,導(dǎo)致流失了很多客戶。
為此,ankao 網(wǎng)絡(luò)寫了這個小程序,可以將訪客的反饋信息自動發(fā)送到您常用的郵箱里,甚至還可以通過QQ郵箱的手機郵箱功能免費發(fā)送到您的手機上,讓您第一時間收到訪客的反饋信息。
本系統(tǒng)只有3個PHP文件,無需數(shù)據(jù)庫,簡單配置一下就可以使用,可以運行在網(wǎng)站的任一目錄下。

配置說明:

   打開index.php文件,按里面的要求修改即可。如果你要想將反饋信息發(fā)送到手機上,可以開通QQ郵箱的免費發(fā)送到手機功能。
關(guān)于提醒到手機服務(wù)(免費)
QQ郵箱的免費的提醒到手機服務(wù),目前有3個用途:
用途1:開通手機號碼郵箱地址,發(fā)來此地址的郵件,您就會收到手機提醒短信(不需您做任何設(shè)置)(點擊這里了解手機號碼郵箱)。
用途2:針對某封郵件的“回信手機提醒”,當(dāng)有回信時,免費提醒到您的手機(點擊這里了解回信提醒)。
用途3:在QQ郵箱日歷中開通了短信提醒的用戶,如果您建立過提醒事件,屆時將會收到免費的短信提醒。

下載鏈接  
 http://pan.baidu.com/s/1qW0omrq 
<?php
include("class.phpmailer.php");
include("class.smtp.php"); 

//你只需填寫一下信息即可****************************

$smtp = "smtp.qq.com";//必填,設(shè)置SMTP服務(wù)器 QQ郵箱是smtp.qq.com ,QQ郵箱默認未開啟,請在郵箱里設(shè)置開通。網(wǎng)易的是 smtp.163.com 或 smtp.126.com
$youremail =  'xxxx@qq.com'; // 必填,開通SMTP服務(wù)的郵箱;也就是發(fā)件人Email。
$password = "xxx"; //必填, 以上郵箱對應(yīng)的密碼

$ymail = "xxx@foxmail.com"; //收信人的郵箱地址,也就是你自己收郵件的郵箱
$yname = "安靠"; //收件人稱呼

//填寫信息結(jié)束 ****************************

function get_ip(){
   if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown"))
       $ip = getenv("HTTP_CLIENT_IP");
   else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown"))
       $ip = getenv("HTTP_X_FORWARDED_FOR");
   else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown"))
       $ip = getenv("REMOTE_ADDR");
   else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown"))
       $ip = $_SERVER['REMOTE_ADDR'];
   else
       $ip = "unknown";
   return($ip);
}

$mail = new PHPMailer();

$mail->IsSMTP();
$mail->SMTPAuth = true; 
$mail->Host = $smtp; 


$mail->Username = $youremail; 
$mail->Password = $password; //必填, 以上郵箱對應(yīng)的密碼

$mail->From = $youremail; 
$mail->FromName = "反饋系統(tǒng)"; 

$mail->AddAddress($ymail,$yname);

if($_POST['yourname']){
    $yourname = $_POST['yourname'];
    $tel = $_POST['tel'];
    $qq = $_POST['qq'];
    $email = $_POST['email'];

    $message = $_POST['message'];
    
    $ip = get_ip();
    
    $mail->Subject = $yourname."-【留言反饋】"; 

    
    $html = '姓名:'.$yourname.'<br>電話:'.$tel.'<br>QQ:'.$qq.'<br>郵箱:'.$email.'<br>IP:'.$ip.'<br>內(nèi)容:'.$message;
    
    $mail->MsgHTML($html);
    
    $mail->IsHTML(true); 

    if(!$mail->Send()) {
        header("Content-Type: text/html; charset=utf-8");

        echo '<script>alert("提交失敗了!");history.go(-1);</script>';
    } else {
        header("Content-Type: text/html; charset=utf-8");
        echo '<script>alert("提交成功!感謝你的反饋。");history.go(-1);</script>';
    }
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>留言反饋 - By www.wiseohd.com</title>
<style>
body{font-size:14px; font-family:tahoma;}
a{color:#000;}
a:hover{color:#f60;}
.red{color:#F00;}
#header,#content,#footer{width:760px; margin:0 auto;}
#header h1{ font-size:36px; color:#075CB1; float:left; margin-bottom:10px; overflow:hidden;}
#header{border-bottom:3px solid #075CB1;margin-bottom:10px;}

#header .gg{ float:right;text-align:right; font-size:12px; width:386px; margin:10px 10px 0 0; color:#999;}

#content{margin-bottom:10px;}
#content .title{width:176px; border:1px solid #b1c1e2; border-bottom:0; font-weight:bold; background:#ecedf8; text-align:center; position:relative; bottom:-1px; line-height:2em; z-index:9;}
#content .main{border:1px solid #b1c1e2; background:#ecedf8; position:relative;}

#content form{margin:8px; background:#fff; padding:10px 0;}

#content .tip{font-size:12px; color:#666;}
#footer{border-top:3px solid #075CB1; position:relative; background:#f5f5f5; padding-top:8px; text-align:center; font-size:12px; color:#999; margin-bottom:10px;}
#footer a{ color:#666}

</style>
<script type="text/javascript">
function G(id){
   return document.getElementById(id);    
}
function ck(){
   if(G('yourname').value == ''){
    alert("姓名不能為空!");
    G('yourname').focus();
    return false;
   }
   if(G('message').value == ''){
    alert("內(nèi)容不能為空!");
    G('message').focus();
    return false;
   }
}
</script>

</head>

<body>

<div style=" width:760px; margin:auto">    <h1>
        留言反饋
</h1></div>
<div id="header">

    <div class="gg">
  <a href="/">&lt;&lt;返回首頁</a></div>
</div>

<div id="content">
    <div class="title">請?zhí)顚懸韵聝?nèi)容</div>
    <div class="main">

        <form action="" method="post" onsubmit="return ck();">

            <table width="100%" cellspacing="0" cellpadding="5" border="0">
                <tbody>
                <tr valign="top">
                    <td width="22%" align="right" valign="middle" class="field">姓名:</td>
                    <td valign="middle">
                        <input type="text" maxlength="40" size="26" id="yourname" name="yourname" /> <font color="red">*</font>
                        <span class="tip">姓名或昵稱</span>
                    </td>
                </tr>
                <tr valign="top">
                    <td valign="middle" align="right" class="field">郵箱:</td>
                    <td>
                        <input type="text" maxlength="40" size="26" id="email" name="email" />  
                        <span class="tip">您的Email地址(建議填寫)</span>
                    </td>
                </tr>
                
                <tr valign="top">
                    <td valign="middle" align="right" class="field">QQ號碼:</td>
                    <td>
                        <input type="text" maxlength="40" size="26" id="qq" name="qq" /> 
                        <span class="tip">您的QQ號碼</span>
                    </td>
                </tr>
                
                <tr valign="top">
                    <td valign="middle" align="right" class="field">聯(lián)系電話:</td>
                    <td>
                        <input type="text" maxlength="15" size="26" id="tel" name="tel" /> 
                        <span class="tip">電話或手機號</span>
                    </td>
                </tr>
                
                <tr valign="top">
                    <td valign="middle" align="right" class="field">內(nèi)容:</td>
                    <td>
                        <textarea name="message" id="message" cols="60" rows="7"></textarea> <font color="red">*</font>
                    </td>
                </tr>
                
                <tr valign="top">
                    <td class="field"></td>
                    <td>
                        <input type="submit" value="提 交" /> <font color="red"><?php echo $ok; ?></font>
                    </td>
                </tr>
                </tbody>
            </table>
        </form>
    </div>
</div>

<div id="footer">
</div>

</body>
</html>
除非注明,文章均為安靠信息技術(shù)原創(chuàng),轉(zhuǎn)載請注明本文地址:www.wiseohd.com/Tecarticle/website_1873.html

上一篇:科訊cms 首頁 文章內(nèi)容頁 欄目頁 title 標(biāo)簽佳寫法
下一篇:利用建站寶盒快速搭建一個三站合一的企業(yè)網(wǎng)站

安靠首頁 | 服務(wù)項目 | 解決方案 | 常見問題 | 溧陽網(wǎng)站建設(shè) | 優(yōu)惠政策 | 友情鏈接 | 申請友鏈 | 網(wǎng)站地圖 最新新聞

安靠信息技術(shù)是一家集互聯(lián)網(wǎng)及移動APP應(yīng)用開發(fā)、網(wǎng)站建設(shè)運營、電子商務(wù)、企業(yè)服務(wù)器技術(shù)文件共享安全vpn域應(yīng)用、

弱電監(jiān)控安裝綜合布線、企業(yè)管理軟件OA、ERP、CRM財務(wù)軟件等IT服務(wù)于一體的高科技服務(wù)型網(wǎng)絡(luò)公司。
Copyright 2013 www.wiseohd.com 常州溧陽安靠信息技術(shù)