Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/12/2006, 08:25
sayda
 
Fecha de Ingreso: diciembre-2006
Mensajes: 7
Antigüedad: 17 años, 4 meses
Puntos: 0
Re: Problema con correos enviados

Gracias, aqui pongo parte del codigo
<form action="index-form.php" method="post" name="formulario1" id="formulario1" onsubmit="return Valida(this)">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100"><div class="azul" style="padding-top:2px; padding-left:10px "> <strong> Nombre:</strong> </div></td>
<td width="320"><INPUT name=nombre class="marcos" id=nombre ></td>
</tr>
</table>
<img src="images/spacer.gif" height="5px">
<table width="400" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100"><div class="azul" style="padding-top:2px; padding-left:10px"> <strong> Apellido:</strong> </div></td>
<td width="320"><INPUT name=apellido class="marcos" id=apellido ></td>
.....****

y en el php

<?

//Estoy recibiendo el formulario, compongo el cuerpo
$cuerpo = "Formulario enviado\n";
$cuerpo .= "Nombre: " . $HTTP_POST_VARS["nombre"] . "\n";
$cuerpo .= "Apellidos: " . $HTTP_POST_VARS["apellido"] . "\n";
$cuerpo .= "Telefono: " . $HTTP_POST_VARS["telefono"] . "\n";
$cuerpo .= "Email: " . $HTTP_POST_VARS["email"] . "\n";
$cuerpo .= "Comentarios: " . $HTTP_POST_VARS["coment"] . "\n";
//mando el correo...
mail("[email protected]","De-empresaxxxx.",$cuerpo);
?> <br><img src="images/dot1.gif" width="5" height="5"><img src="images/spacer.gif" width="20" height="8"> Gracias, nos podremos en contacto con usted. <br>
...**********

eso es parte del codigo que tengo en ambos, todo funciona bien, pero quisiera que cuando llega el correo no saliera en "De: Nobody"