Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/06/2012, 00:33
hernan2212
 
Fecha de Ingreso: marzo-2012
Ubicación: Rosario
Mensajes: 108
Antigüedad: 12 años, 1 mes
Puntos: 0
Pregunta No muestra datos de las variables

Hola tengo un codigo para envios de mail con estilo, pero a la hora de recibir el mail me muestra el nombre de la variable no sus datos

Codigo
<?
$nombre = $_POST [nombre];
$mail = $_POST [mail];
$mensaje = $_POST [mensaje];
if ( $HTTP_POST_VARS ){

$adireccion="[email protected]";
$asunto ="Nuevo Mail";
$remitente="[email protected]";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Desde pagina <$remitente>\r\n";
$headers .= "Reply-To: $remitente\r\n";
$headers .= "Return-path: $remitente\r\n";
$contenidomail= '
<html>
<head>
<style type="text/css">

#encabezado {
background-color:#FFFFFF;
border:1px solid #999999;
margin:10px;
text-align:center;
}
#cuerpo {
background-color: #F4F4F4;
border:1px dotted #999999;
font: Arial, Helvetica, sans-serif;
color:#666666;
font-size:10pt;
width:600px;
}

.fuente {
font-family: "Courier New", Courier, monospace;
font-size: 20px;
color: #000;
}
.data {
font-family: "Courier New", Courier, monospace;
font-size: 14px;
color: #000;
}
</style>
</head>

<body>
<div id="cuerpo">
<table width="600">
<tr>
<td colspan="4" align="center"><p class="data"><img src="images/logo.jpg" width="179" height="54"></p></td>
<td><span class="data">$Nombre</span></td>
<td><span class="data">$mail</span></td>
<td><span class="data">$mensaje</span></td>
</tr>
</table>

</div>
</body>
</html>';


mail ($adireccion, $asunto, $contenidomail,$headers);
}
?>
Gracias por la ayuda de antemano
Saludos