sendmail.aspx

来自「MSMQ之使用範例程式」· ASPX 代码 · 共 62 行

ASPX
62
字号
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SendMail.aspx.cs" Inherits="SendMail" %>

<!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 runat="server">
    <title>无标题页</title>
</head>
<body>
    <form id="form1" runat="server">
    <div style="top:80px;left:200px;position:absolute;">
        <table style="width: 400px;" border="0" bordercolor="#3399ff" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" style="font-size: 12px">STMP主机:</td>
                <td style="width: 320px;font-size: 12px;"><asp:TextBox ID="tbSmtpServer" runat="server" ForeColor="Olive">smtp.163.com</asp:TextBox>&nbsp;
                    如:smtp.163.com</td>
            </tr>
            <tr>
                <td style="font-size: 12px">发件人地址:</td>
                <td style="width: 320px"><asp:TextBox ID="tbSender" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="font-size: 12px">发件人密码:</td>
                <td style="width: 320px"><asp:TextBox ID="tbSenderPwd" runat="server" TextMode="Password" Width="148px"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2" style="height:5px;"></td>
            </tr>
            <tr>
                <td style="font-size: 12px;">收件人地址:</td>
                <td style="width: 320px"><asp:TextBox ID="tbReceive" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="font-size: 12px; height: 19px;">邮件主题:</td>
                <td style="height: 19px; width: 320px;">
                <asp:TextBox ID="tbTitle" runat="server" Width="309px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="font-size: 12px;" valign="top">邮件正文:</td>
                <td style="height: 19px; width: 320px;"><asp:TextBox ID="tbContent" runat="server" TextMode="MultiLine" Height="163px" Width="308px"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="font-size: 12px; height: 19px"></td>
                <td style="height: 19px; width: 320px;"><asp:Button ID="btnSendMail" runat="server" Text="发送邮件" OnClick="btnSendMail_Click" />
                    &nbsp; &nbsp; &nbsp; 
                    <span style="font-size: 12px"><a href="MailServer.aspx">转到邮件服务器</a></span></td>
            </tr>
            <tr>
                <td id="tdError" runat="server" colspan="2" style="font-size: 12px; height: 19px">
                </td>
            </tr>
            <tr>
                <td id="tdSucces" runat="server" colspan="2" style="font-size: 12px; height: 19px">
                </td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?