protected void btnEnviar_Click(object sender, EventArgs e)
        {
            Usuario objUsuario = new Usuario();
            objUsuario.verificarEmail(txtEmail.Text);

            NewsLetter objNewsLetter = new NewsLetter();
            objNewsLetter.enviarEmail("*****@*****.**", objUsuario.email, "Recuperação de Senha", "email: " + objUsuario.email + "<br>senha: " + objUsuario.senha);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                NewsLetter objNewsLetter = new NewsLetter();
                lista = objNewsLetter.consultar();

                if (lista != null)
                {
                    gdvNewsLetter.DataSource = lista;
                    gdvNewsLetter.DataMember = "Tabela";
                    gdvNewsLetter.DataBind();
                }
            }
        }
 protected void btnEnviar_Click(object sender, EventArgs e)
 {
     NewsLetter objNewsLetter = new NewsLetter();
     objNewsLetter.enviarEmail(txtEmailOrigen.Text, txtEmailDestino.Text, txtTituloMsg.Text, txtCorpoMsg.Text);
 }
 protected void btnDeletar_Click(object sender, EventArgs e)
 {
     NewsLetter objNewsLetter = new NewsLetter();
     objNewsLetter.deletar(lblNewsLetter.Text);
     Response.Redirect(Request.RawUrl);
 }
 protected void btnAlterar_Click(object sender, EventArgs e)
 {
     NewsLetter objNewsLetter = new NewsLetter();
     objNewsLetter.alterar(lblNewsLetter.Text, txtEmail.Text);
     Response.Redirect(Request.RawUrl);
 }
 protected void btnAdicionar_Click(object sender, EventArgs e)
 {
     NewsLetter objNewsLetter = new NewsLetter();
     objNewsLetter.adicionar(txtEmail.Text);
 }