Código PHP:
<?php
//Nombre de tu sitio web
$sitioweb = "www.misitio.com";
//Url de tu sitio web
$sitiourl = "http://www.misitiocom";
//outlook de web
$outlook = "[email protected] ";
//Este es el asunto que llegara en el mail.
$asunto = "Te recomiendan que visites nuestra web ".$sitioweb."";
//los campos mandados por el formulario
$name = $_POST['name'];
$email = $_POST['email'];
$friendname = $_POST['friendname'];
$friendmail = $_POST['friendmail'];
$message ="<span>Hola <b>".$friendname."</b></span><br>";
$message .="".$name." de ".$email." te recomienda que visites <a href=".$sitiourl." title=".$sitioweb.">".$sitioweb."</a><br>";
$message .=
'
<html>
<title></title>
<head></head>
<body>
<table width="70%">
<tr>
<td rowspan="7" width="46%"><img src=\"http://www.misitio.com/solo.jpg\"></td>
</tr>
<tr>
<td width="54%"><h1><b>jack</b></h1></td>
</tr>
<tr>
<td width="54%">54545</td>
</tr>
<tr>
<td width="54%">888899977</td>
</tr>
</table>
</body>
</html>';
$message .="<br>Saludos";
$message = stripslashes($message);
$headers = "MIME-Version: 1.0 \r\n";
$headers .= "Content-type:text/html; charset=iso-8859-1\n";
$headers .= "From:". strip_tags($_POST['name']) . "\r\n";
$headers .= "Repaly-to: ". strip_tags($_POST['email']) . "\r\n";
$headers .= "Cc:". strip_tags($_POST['email']) . "\r\n";
mail($friendmail,$asunto,$message,$headers);
//aqui puedes modificar los mensajes
echo "Envio exitoso!<BR>";
echo "Gracias por recomendar nuestra web <b>".$friendname."</b><BR>";
echo " <a href='recomendacion.php'>regresar</a>";
?>