日期:2014-05-17  浏览次数:20795 次

如何使用ASP和JMAIL在代理上网的环境中实现邮件发送功能。分不多。还是希望高手能指点
index.htm
HTML code
<!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=gb2312" />
    <title>例子</title>
</head>
<body>
    <form id="form1" name="form1" method="post" action="ListFriend.asp">
    <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td width="71" height="30" align="right">
                邮箱:
            </td>
            <td width="429" height="30">
                <select size="1" name="domains">
                    <option value="163" selected="selected">@163.com 网易</option>
                    <option value="sina">@sina.com 新浪</option>
                </select>
                *
            </td>
        </tr>
        <tr>
            <td height="30" align="right">
                用户名:
            </td>
            <td height="30">
                <input size="23" name="uName" />
                *(例:myemail)
            </td>
        </tr>
        <tr>
            <td height="30" align="right">
                密码:
            </td>
            <td height="30">
                <input type="password" size="19" name="uPw" />
                *
            </td>
        </tr>
        <tr>
            <td height="30" align="right">
                收件人:
            </td>
            <td height="30">
                <input name="sendTo" type="text" id="sendTo" size="35" />
                *(例:XX@126.com)
            </td>
        </tr>
        <tr>
            <td height="30" align="right">
                标题:
            </td>
            <td height="30">
                <input name="Title" type="text" id="Title" value="AAAAAA" size="50" />
                *
            </td>
        </tr>
        <tr>
            <td height="30" align="right">
                内容:
            </td>
            <td height="30">
                <textarea name="Content" cols="50" rows="6" id="Content"><%=Content%></textarea>
                *
            </td>
        </tr>
        <tr>
            <td height="30" align="right">
                <input name="doWhat" type="hidden" id="doWhat" value="sendEmail" />
            </td>
            <td height="30">
                <input tabindex="4" type="submit" value=" 发 送 " name="sub" style="height: 1.67em;
                    width: 5.0em; font-size: 13px" />
                (点击发送后请稍等提示...)
            </td>
        </tr>
    </table>
    </form>
</body>
</html>




ListFriend.asp
VBScript code

                    香港云服务器 免备案 云主机VPS 国内 独立IP 独享15M 月付SSD