<?php
$nombre = $_POST['txtNombre'];
$email = $_POST['txtEmail'];
$consulta = $_POST['txtMsg'];
$asunto = $_POST['txtAsunto'];
$para = "info@email.com";
$mensaje = "<h2>Consulta enviada del sitio web.</h2>
<p>La Persona: ".$nombre."</p>
<p>Con el email: ".$email."</p>
<p>Tiene la siguiente consulta: ".$consulta."</p>";
$cabeceras = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=utf-8' . "\r\n";
$cabeceras .= 'From: <'.$email.'>' . "\r\n";
if(mail($para, $asunto, $mensaje, $cabeceras)){
$mensaje=TRUE;
}
?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.