yo lo haria algo asi
Código HTML:
Ver original<form class="c-form" method="POST" action=""> <input type="text" id="nombre" name="nombre"> <input type="tel" id="telefono" name="telefono"> <input type="email" id="email" name="correo"> <input type="submit" value="Enviar" >
Código PHP:
Ver original<?php
if (isset($_POST["nombre"]) and
isset($_POST["correo"])) { $destino="aqui el correo";
$asunto="aqui pongo el asunto"
$nombre=$_POST['nombre'];
$tel=$_POST['telefono'];
$correo=$_POST['correo'];
$mensaje=$_POST['mensaje'];
$msn="
Nombre: $nombre \n
Teléfono: $tel \n
Correo: $correo \n
Correo: $mensaje \n
";
$cabeceras = 'From: aqui el correo . "\r\n" . 'Reply-To: aqui el correo' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
if(mail($destino,$asunto,$msn,$cabeceras)){
header("Location: contacto.php?m=1");
}
}
?>