Hola shebita2003,
Podrias poner el código ya agregandole lo que necesitas para el envio del mail? ya que en si si haces algo así:
Código PHP:
<?php
if($_POST['enviar']=="Enviar"){
function generartabla() {
echo "<table style='float:none;width:200px;margin-top:50px;margin-left:20px;'>";
while(list($key, $Value) = each($_POST)){
if ($key != 'enviar'){
if ($key == 'email'){
echo "<tr>";
echo "<td style='font-weight:bold;'>". $key ." : </td><td>". $Value . "</td>";
echo "</tr>";
echo "<tr>";
echo "<td style='font-weight:bold;'> </td><td> </td>";
echo "</tr>";
}else{
echo "<tr>";
echo "<td style='font-weight:bold;'>". $key ." : </td><td>". $Value . "</td>";
echo "</tr>";
echo "</tr>";
}
} else {
echo "<tr>";
echo "<td style='font-weight:bold;'> </td><td> </td>";
echo "</tr>";
echo "</table>";
}
}
$mail = generartabla();
mail( $to, $subject, $mail, $headers );
}
?>
Te debería de funcionar correctamente.
Saludos.