seeing html in email when using HTML Editor and custom email script
Hello!
I have problem on using HTML Editor in form to send email. It is possible to send email, but the message is in html format.
For more information see the attachement1 (Message received in html format), Attachement2 (Look of the form) and the code below.
Somebody can help me?.
Regards,
Celestino Veiga
<?php require_once( "WA_SecurityAssist/Helper_PHP.php" ); ?>
<?php
if (!WA_Auth_RulePasses("Logged in to tb_utilizadores")){
WA_Auth_RestrictAccess("pag_tb_utilizadores_LogIn.php");
}
?>
<?php require_once("HTMLEditor/WARichEditorPHP.php"); ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CONTACTO</title>
<style type="text/css">
<!--
.style18 { color: #993300;
font-family: Arial, Helvetica, sans-serif;
}
.style19 {color: #000066}
.style27 {color: #000000}
.style5 {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
color: #009;
}
.contacto {
font-family: Arial, Helvetica, sans-serif;
}
.contacto {
font-family: Arial, Helvetica, sans-serif;
}
.contacto {
font-family: Arial, Helvetica, sans-serif;
}
.style29 {
font-size: 12px;
font-weight: bold;
}
body {
margin-left: 0px;
margin-top: 10px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #99FF66;
}
.style34 {
font-family: Arial, Helvetica, sans-serif;
text-align: center;
font-size: 12px;
color: #00F;
font-weight: bold;
}
.contacto {
color: #CC0;
}
#form_contacto table {
}
-->
</style>
</head>
<body>
<table width="843" border="0" align="center" cellpadding="0" cellspacing="4" bordercolor="#66CC33" bg bgcolor="#66CC33">
<tr bordercolor= bordercolor="#66CC33" bgcolor="#66CC33">
<td width="150" height="36" align="left" valign="middle" bordercolor="#66CC33" bgcolor="#66CC33" class="contacto"> </td>
<td width="714" align="left" valign="bottom" bordercolor="#66CC33" bgcolor="#66CC33" class="contacto"><p><strong><span class="style5 style19">CONTACTE - ME</span></strong></p></td>
</tr>
<tr bordercolor="#66CC33" bgcolor="#66CC33">
<td height="213" colspan="2" align="center" bordercolor="#66CC33" bgcolor="#66CC33"><form action="pag_envia.php" method="post" name="form_contacto" target="iframe_principal" id="form_contacto">
<table width="835" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" align="right" valign="top" style="font-family:Verdana, Geneva, sans-serif; font-size: 14px;">Primeiro nome: </td>
<td colspan="2" align="left"><label>
<input name="primeiro_nome" type="text" id="primeiro_nome" size="45">
<br />
<br /></label></td>
<td width="51"> </td>
</tr>
<tr style="">
<td colspan="2" align="right" valign="top" style="font-family:Verdana, Geneva, sans-serif; font-size: 14px;" >Último nome: </td>
<td colspan="2" align="left"><label>
<input name="ultimo_nome" type="text" id="ultimo_nome" size="45">
<br />
<br /></label></td>
<td> </td>
</tr>
<tr>
<td colspan="2" align="right" valign="top" style="font-family:Verdana, Geneva, sans-serif; font-size: 14px;">Email: </td>
<td colspan="2" align="left"><label>
<input name="email" type="text" id="email" size="45">
<br />
<br /></label></td>
<td> </td>
</tr>
<tr>
<td colspan="2" align="right" valign="top" style="font-family:Verdana, Geneva, sans-serif; font-size: 14px;">Assunto: </td>
<td colspan="2" align="left"><label>
<input name="assunto" type="text" id="assunto" size="45">
<br />
<br />
</label></td>
<td> </td>
</tr>
<tr>
<td colspan="2" align="right" style="font-family:Verdana, Geneva, sans-serif; font-size: 14px;">Mensagem: </td>
<td colspan="3" align="left"><?php
// WebAssist iRite: Rich Text Editor for Dreamweaver
$WARichTextEditor_1 = CreateRichTextEditor ("mensagem", "HTMLEditor/", "100%", "400px", "Custom", "../custom/pag_contacto_mensagem1.js", "".((isset($_COOKIE[""]))?$_COOKIE[""]:"") ."");
?> </label></td>
</tr>
<tr class="contacto">
<td width="115" height="26" align="right"><input type="reset" name="limpar" id="limpar" value="Limpar" /></td>
<td width="25" class="contacto"> </td>
<td width="678"> </td>
<td width="4"> </td>
<td align="right"><input type="submit" name="enviar2" id="enviar2" value="Enviar" /></td>
</tr>
</table>
</form></td>
</tr>
</table>
</body>
</html>