"Nombre", "type" => "string", "required" => true); $fields[] = array("name" =>"Direccion", "type" => "string", "required" => true); $fields[] = array("name" =>"Ciudad", "type" => "string", "required" => false); $fields[] = array("name" =>"Estado", "type" => "string", "required" => false); $fields[] = array("name" =>"CP", "type" => "number", "required" => false); $fields[] = array("name" =>"Email", "type" => "email", "required" => true); $fields[] = array("name" =>"Comentarios", "type" => "string", "required" => false); /* * MENSAJES VALIDACION */ $messages['ok'] = "El correo fue enviado correctamente , Gracias."; $messages['empty'] = "El campo {field} no debe ser vacío."; $messages['incorrect'] = "The field {field} must be a valid value."; $messages['outlimit'] = " {field} should be a value between {min} and {max}"; $messages['captcha'] = "El security code es incorrecto o vacio"; /* * VALORES E-MAIL */ $redirect = getScript(); $subject_title = "Contactanos"; $asunto_title = "Contactanos - "; $domain = "rutapuebla.mx"; $to = $TEST ? $EMAIL_TEST : "juancarlos@vicomstudio.com"; $from = "contacto@rutapuebla.mx"; $img = ABS_HTTP_URL."img/layout/logo.png"; $colorth = '#000000'; $colortd = '#000000'; $backimg = '#FFFFFF'; $email_noreply = "noreply@$domain"; $subject = "$subject_title - $from"; $asunto = "$asunto_title - $from"; $comentarios = ''; if(isset($_POST['cmd']) == $CMD){ $entity = $_POST[$VARIABLE_POST]; $result = validar($VARIABLE_POST,$fields,$messages,$redirect); if($result['status']){ if ($securimage->check($_POST['captcha_code']) == false){ die(''); } $FieldsTable = genericHTMLFieldsTable($_POST[$VARIABLE_POST],$colorth,$colortd); $HTML = genericHTMLMail($img,$backimg,$comentarios,$FieldsTable); sendMail($HTML,$from,$to,$subject,$email_noreply,$ENVIAR_POR_SMTP); if($ENVIAR_EMAIL_A_USUARIO){ ob_start(); include('autoreplay/email3.php'); $body = ob_get_contents(); ob_end_clean(); mail( isset($_POST['entity']["email"]), $asunto, $body, $header); } // ALERT DE CONFIRMACION // echo $result['msg']; }else{ // ASIGNACION DE VARIABLES DE VALIDACION // $empty = $result['empty']; $msg = $result['msg']; $campos = $_POST[$VARIABLE_POST]; } } ?>

Ruta 01 22 22 290600

contacto

Secretaria de Transportes

Teléfono:
01 22 22 290600
Ext. 3021 y 4109 Twitter: @RUTA_Puebla

Nombre: