Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/01/2005, 14:04
Cromahost
 
Fecha de Ingreso: julio-2004
Ubicación: Buenos Aires , Argentina
Mensajes: 525
Antigüedad: 20 años, 8 meses
Puntos: 0
te dejo un codigo php , abri un archivo php en dreamwever y luego guardalo como enviar.php.




<?
while(list($nombre_campo, $valor_campo ) = each($HTTP_POST_VARS )) {
strtolower ($nombre_campo);

if(is_array($valor_campo)){
$msg .= ucfirst($nombre_campo).": \n";

while (list ($val) = each ($valor_campo)) {
$msg .= $val."\n";
}
$msg .= "\n";
}else{
if($nombre_campo != "submit" && $nombre_campo !="receptor" && $nombre_campo !="remitente" && $nombre_campo !="tema" && $nombre_campo !="redireccion"){
$msg .= ucfirst($nombre_campo).": ".$valor_campo."\n\n"; }
}

}

$msg .= "----------------------------------------------\n";
$msg .= "USER AGENT: ".$HTTP_USER_AGENT."\n";
$msg .= "IP: ".$REMOTE_ADDR."\n";

mail($receptor,$tema,$msg,"From: $remitente");

header("Location: $redireccion");

?>





Ahora te escribo un ejemplo del codigo html que tendria que ir en el fromulario que llama al archivo enviar.php , este codigo lo tienes que modifcar con tus direcciones de mails, para que el formulario te llegue a tu cuenta.





<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

</head>

<body>
<form method="POST" name="contacto" action="enviar.php">
<input name="receptor" type="hidden" id="receptor" value="[email protected]">
<input name="remitente" type="hidden" id="remitente" value="[email protected]">
<input name="tema" type="hidden" id="tema" value="Informacion desde el sitio web">
<input name="redireccion" type="hidden" id="redireccion" value="enviado.html">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169" height="30"><div align="right" class="style8">
<div align="right"><span class="style4">Nombre y apellido</span></div>
</div></td>
<td width="7" height="30"><span class="style8"></span></td>
<td width="229" height="30"><input name="Nombre" type="text" class="style4"></td>
</tr>
<tr>
<td height="30"><div align="right" class="style8"><span class="style4">Telefono</span></div></td>
<td width="7" height="30"><span class="style8"></span></td>
<td height="30"><input name="telefono" type="text" class="style4"></td>
</tr>
<tr>
<td height="30"><div align="right" class="style8"><span class="style4">e-mail</span></div></td>
<td width="7" height="30"><span class="style8"></span></td>
<td height="30"><input name="E-mail" type="text" class="style4"></td>
</tr>
<tr>
<td height="30" colspan="3"><div align="center"><span class="style1">
<input type="submit" name="Submit" value="Enviar Datos">
</span></div></td>
</tr>

</table>
</form>
</body>
</html>



Saludos!