</body>
</html>
<?php
error_reporting(0);
$nombre = $_POST['nombre'];
$correo= $_POST['correoenvia'];
$telefono = $_POST['telefono'];
$sexo=$_POST['GrupoOpciones1'];
$mensaje=$_POST['mensaje'];
$radio= $_POST['GrupoOpciones2'];
$opinion=$_POST['opinion'];
$header = 'From: ' . $correo . " rn";
$header .= "X-Mailer: PHP/" . phpversion() . " rn";
$header .= "Mime-Version: 1.0 rn";
$header .= "Content-Type: text/plain";
$mensaje = "Este mensaje fue enviado por : " . $nombre . " rn";
$mensaje .= "Su e-mail es : " . $correo. " rn";
$mensaje .= "Sexo : " . $_POST['GrupoOpciones1'] . " rn";
$mensaje .= "Mensaje : " . $_POST['mensaje'] . " rn";
$mensaje .= "Que opinas de nuestra pagina :" . $_POST['GrupoOpciones2'] . " rn";
$mensaje .="Danos tu opinion :".$_POST['opinion'] . " rn";
$mensaje .= "Enviado el ; " . date('d/m/Y', time());
$para = 'elcorreodondereciben@tudominio.com';
$asunto = 'Formulario enviado pagina web';
mail($para, $asunto, utf8_decode($mensaje), $header, $telefono);
echo 'mensaje enviado correctamente';
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Contacto</title>
</head>
<body>
</p>
<p>
<label for="telefono">Tel:</label>
<input name="telefono" type="tel" required="required" id="telefono" placeholder="Celular o Fijo" tabindex="5"
maxlength="20">
</p>
</fieldset>
<fieldset>
<legend>Direccin</legend>
<p>
<label for="calle">Calle:</label>
<input name="calle" type="text" required id="calle" maxlength="30">
<label for="numero">No.:</label>
<input name="numero" type="text" required="required" id="numero" maxlength="5">
</p>
<p>
<label for="colonia">Colonia:</label>
<input name="colonia" type="text" required id="colonia" maxlength="25">
</p>
<p>
<label for="distritofed">Distrito federal:</label>
<select name="distritofed" id="distritofed">
<option value="..." selected="selected">...</option>
<option value="6">6</option>
<option value="9">9</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
</p>
</fieldset>
<p>
<input type="reset" name="reset" id="reset" value="Restablecer">
</body>
</html>