<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EnviarEmail.aspx.cs" Inherits="EnviarEmail" %>

<!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>Formulário de envio de e-mail</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style3
        {
            text-align: right;
        }
        .style4
        {
            width: 250px;
        }
        .style5
        {
            text-align: right;
            height: 41px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table class="style1">
            <tr>
                <td class="style5" colspan="3">
                    <asp:Panel ID="Panel1" runat="server" Height="58px" Style="text-align: center; margin-left: 0px"
                        Width="906px">
                        <asp:Label ID="lblServidor" runat="server" Text="Servidor SMTP"></asp:Label>
                        &nbsp;<asp:TextBox ID="txtServidor" runat="server" MaxLength="50" Width="360px">127.0.0.1</asp:TextBox>
                        <br />
                        <asp:Label ID="lblUsuario" runat="server" Text="Usuário"></asp:Label>
                        &nbsp;<asp:TextBox ID="txtUsuario" runat="server" MaxLength="50" Width="168px"></asp:TextBox>
                        &nbsp;&nbsp;<asp:Label ID="lblSenha" runat="server" Text="Senha"></asp:Label>
                        &nbsp;<asp:TextBox ID="txtSenha" runat="server" MaxLength="20" Width="176px" TextMode="Password"></asp:TextBox>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblNomeRemetente" runat="server" Text="Nome remetente"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNomeRemetente" runat="server" MaxLength="50" Width="367px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblEmailRemetente" runat="server" Text="E-mail remetente"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtEmailRemetente" runat="server" MaxLength="50" Width="367px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblNomeDestinatario" runat="server" Text="Nome destinatário"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtNomeDestinatario" runat="server" MaxLength="50" Width="367px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblEmailDestinatario" runat="server" Text="E-mail destinatário"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtEmailDestinatario" runat="server" MaxLength="50" Width="367px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblAssunto" runat="server" Text="Assunto"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtAssunto" runat="server" MaxLength="100" Width="367px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    <asp:Label ID="lblMensagem" runat="server" Text="Mensagem"></asp:Label>
                </td>
                <td>
                    <asp:TextBox ID="txtMensagem" runat="server" Height="178px" MaxLength="300" TextMode="MultiLine"
                        Width="367px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style3" colspan="2">
                    &nbsp;
                </td>
                <td>
                    <asp:Button ID="btnEnviar" runat="server" OnClick="btnEnviar_Click" Text="Enviar e-mail" />
                </td>
            </tr>
            <tr>
                <td align="left" class="style4">
                    &nbsp;
                </td>
                <td align="left" colspan="2">
                    <asp:Label ID="lblResult" runat="server" Font-Bold="True" ForeColor="#FF3300" Style="text-align: left"></asp:Label>
                </td>
            </tr>
        </table>
        <br />
        <br />
        <br />
    </div>
    <br />
    <br />
    </form>
</body>
</html>
