
</html>
<head>
<style>
.textBox {width: 100%}
.textArea {width: 100%; height: 100%}
</style>
</head>
<body>
<form name="frm_mail" action="#" method="post">
<%
	' envia o e-mail
	if (request.Form() <>"") then
		Set EnviarMail = Server.CreateObject("CDONTS.NewMail")
		EnviarMail.To = request.form("txt_para") 
		EnviarMail.From = request.form("txt_de")
		EnviarMail.Subject = request.form("txt_assunto") 
		EnviarMail.Body = request.form("txt_mensagem") 	
		EnviarMail.Importance = 1
		EnviarMail.BodyFormat = 0
		EnviarMail.MailFormat = 0
		EnviarMail.Send
		msg = "<script>alert('Mensagem enviada.');</script>"
	end if
	%>
	
<br><br>
<table width="80%" height="350" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="left" scope="row"><input type="submit" name="Submit" value="Enviar" /></td>
    <td width="705">&nbsp;</td>
  </tr>
  <tr>
    <td width="81" align="left" scope="row">De</tD>
    <td><input name="txt_de" type="text" class="textBox" id="txt_de" value="<% = request.form("txt_de") %>" /></td>
  </tr>
  <tr>
    <td align="left" scope="row">Para</td>
    <td><input name="txt_para" type="text" class="textBox" id="txt_para" value="<% = request.form("txt_para") %>" /></td>
  </tr>
  <tr>
    <td align="left" scope="row">Assunto</td>
    <td><input name="txt_assunto" type="text" class="textBox" id="txt_assunto" value="<% = request.form("txt_assunto") %>" /></td>
  </tr>
  <tr>
    <td height="300" colspan="2" scope="row">
	<textarea name="txt_mensagem" class="textArea" id="txt_mensagem"><% = request.form("txt_mensagem") %></textarea></td>
  </tr>
</table>

</form>
<% = msg %>
</body>
</html>