六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網(wǎng)中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

通過html表格發(fā)電子郵件

[摘要]如下: <? /****************************************************************************** Description: This is a simple script to send emails via ...
如下:
<?  

/******************************************************************************  
Description: This is a simple script to send emails via a html-form   
               to different users  
Date        : 1999-02-25  
Author        : amalesh kempf <amalesh@goatrance.de>  


Create this table  
The field "what" is for different categories  

CREATE TABLE email_notify (  
ID int(11) DEFAULT '0' NOT NULL,  
What varchar(60) DEFAULT '0' NOT NULL,  
Name varchar(60) DEFAULT '0' NOT NULL,  
Email varchar(60) DEFAULT '0' NOT NULL,  
timestamp varchar(16),  
KEY (What),  
PRIMARY KEY (ID));  

To fill this table you might create an insert form  

*******************************************************************************/  




// Set this values:  
$strHost  ="localhost";  
$strUser  ="root";  
$strPassw ="";  
$strSender="you@domain.com";  



if (!$btnSendEmail)  
{  
?>  

The email will be added automatically with "Hello Name" in the first line of   
the emailbody!<br>  
<br>  

    <form action="send_email.php3" enctype="application/x-www-form-  
urlencoded" method="post">  
    <table>  
        <tr>  
            <td>Subject</td>  
            <td><input name="strSubject" size="40"></td>  
        </tr>  
        <tr>  
            <td>Body</td>  
            <td><textarea cols="40" name="strBody" rows="8"   
wrap="PHYSICAL"><? echo $strBody ?></textarea></td>  
        </tr>  
        <tr>  
            <td>Category</td>  
            <td>  
                <select name="strWhat">  
                <?php // add you categories here: ?>  
                <option value="party">Party</option>  
                </select>  
            </td>  
        </tr>  
    </table>  
    <input name="btnSendEmail" style="HEIGHT: 24px; WIDTH: 224px"   
type="submit" value="Sende email">  
    </form>  
      
<?php  
}  


if (isset($btnSendEmail))  
{    echo "Send Email<br>";  

    // Create connection  
    $intConID = mysql_pconnect($strHost,$strUser,$strPassw);  

    // Header  
    $strHeader = "Return-Path: $strSender\nErrors-To: $strSender\nFrom:   
$strSender";  
      
    // SQL  
    $strSQL = "select name,email from email_notify where lcase(what) =   
'$strWhat'";  
    $intRes = mysql_query($strSQL,$intConID);  

    echo "Send Email $strBody<br>";  

    // fetch array      
    while($saRow = mysql_fetch_array($intRes))  
    {    $strEmail = $saRow["email"];  
        $strName = $saRow["name"];  
        $strBodyComplete = "Hello " . $strName[$i] . "!\n\n" . $strBody;  
          
        // Email  
        mail($strEmail,$strSubject,$strBodyComplete,$strHeader);  
          
        // Output  
        echo "Send to $strName<br>";  
    }  
}  
?>  



主站蜘蛛池模板: 色噜噜在线 | 欧美午夜视频在线 | 天天拍夜夜添久久精品免费 | 中文字幕免费在线视频 | 亚洲精品123区 | 日韩经典欧美一区二区三区 | 亚洲男人在线天堂 | 碰91精品国产91久久婷婷 | 日本欧美一区二区三区片 | 天天艹天天操 | 欧美亚洲日本在线 | 日韩成人毛片高清视频免费看 | 色好吊 | 无码中文av有码中文av | 日本综合欧美一区二区三区 | 欧美透逼视频 | 日本韩国在线播放 | 欧美熟色妇| 夜夜夜夜夜夜夜工噜噜噜 | 日本激情视频一区二区三区 | 亚洲欧美男人天堂 | 午夜在线观看免费视频 | 青娱乐在线免费观看视频 | 日韩黄色三级 | 日本在线观 | 日本亚洲精品 | 无码免费一区二区三区免费播放 | 午夜国产在线观看 | 一级做a爱片久久蜜桃 | 欧美特黄一级大黄录像 | 日日夜夜操天天干 | 奇米五月 | 亚洲欧洲日韩在线 | 日本激情在线看免费观看视频 | 日干夜操 | 视频在线亚洲 | 伊人久久大香线蕉综合7 | 影音先锋精品国产资源 | 一级片一级毛片 | 欧美一级一片 | 亚洲人成片在线观看 |