Hola:
Código HTML:
<html>
<body>
<form method="POST" action="max.php">
<p>Recomienda este sitio a un amigo:</p>
Tu nombre:<br>
<input type="text" name="nombre" size="20"><br>
Tu email:<br>
<input type="text" name="remitente" size="20"><br>
Email de tu amigo:<br>
<input type="text" name="destinatario" size="20"><br>
Mensaje:<br>
<input type="text" name="mensaje" size="40"><br>
<br>
<input type="submit" value="Enviar a un amigo" name="B1"></p>
</form>
</body>
</html>
max.php Código PHP:
<?php
$destinatario = $_POST['destinatario'];
$remitente = $_POST['email'];
$nombre = $_POST['nombre'];
$mensaje = $_POST['mensaje'];
$message = "
nombre:".$nombre."
email:".$email."
mensaje:".$mensaje."";
mail($destinatario,"Formulario de Consulta",$message, "From: $remitente");
?>