⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mailserver.aspx

📁 MSMQ之使用範例程式
💻 ASPX
字号:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MailServer.aspx.cs" Inherits="MailServer" %>

<!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>
        <div style="left: 200px; position: absolute; top: 80px">
            <table border="0" bordercolor="#3399ff" cellpadding="0" cellspacing="0" style="width: 400px">
                <tr>
                    <td style="font-size: 12px" width="20%">
                    </td>
                    <td style="font-size: 12px; width: 320px">
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="接收邮件" />
                        ·从消息队列里读取邮件信息</td>
                </tr>
                <tr>
                    <td style="font-size: 12px" width="20%">
                    </td>
                    <td style="font-size: 12px; width: 320px">
                    </td>
                </tr>
                <tr>
                    <td style="font-size: 12px" width="20%">
                        STMP主机:</td>
                    <td style="font-size: 12px; width: 320px">
                        <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="width: 320px; height: 19px">
                        <asp:TextBox ID="tbTitle" runat="server" Width="309px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="font-size: 12px" valign="top">
                        邮件正文:</td>
                    <td style="width: 320px; height: 19px">
                        <asp:TextBox ID="tbContent" runat="server" Height="163px" TextMode="MultiLine" Width="308px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="font-size: 12px; height: 19px">
                    </td>
                    <td style="width: 320px; height: 19px">
                        <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="发送邮件" /></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>
    
    </div>
    </form>
</body>
</html>

⌨️ 快捷键说明

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