<?php
$ponombre = $_POST["nombre"];
$potelefono = $_POST["telefono"];
$pomail = $_POST["email"];
$pocomentarios = $_POST["comentarios"];


$todayis = date("l, F j, Y, g:i a") ;



$from = "Formulario web Jerónimo Arévalo";

$subject = "Contacto";

$oldvowels = array("á", "é", "í", "ó", "ú", "Á", "É", "Í", "Ó", "Ú", "ñ", "Ñ");
$vowels = array("&aacute;", "&eacute;", "&iacute;", "&oacute;", "&uacute;", "&Aacute;", "&Eacute;", "&Iacute;", "&Oacute;", "&Uacute;");


$message = " 
Nombre: $ponombre <br>
Teléfono: $potelefono <br>
Correo:$pomail <br>
Comentarios:$pocomentarios <br>";


$message = str_replace($oldvowels , $vowels , $message);

$cabeceras  = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
$cabeceras .= 'From: Formulario web Jerónimo Arévalo' . "\r\n";


//mail('david.buenfil@studiocass.com', 'Formulario web Jerónimo Arévalo',$message,"MIME-Version: 1.0\nContent-type: text/html; charset=UTF-8\nFrom: $ponombre < $pomail >");
mail('jeronimoarevalo@jeronimoarevalo.com', 'Formulario web Jerónimo Arévalo',$message,"MIME-Version: 1.0\nContent-type: text/html; charset=UTF-8\nFrom: $ponombre < $pomail >");
mail('carlos.chavez@contraparte.com', 'Formulario web Jerónimo Arévalo',$message,"MIME-Version: 1.0\nContent-type: text/html; charset=UTF-8\nFrom: $ponombre < $pomail >");

 ?>