<?php
//http://ggp.site50.net/index.php?m=thpkevin@gmail.com&mm=gateperu2015@gmail.com&a=PROBLEMA&nro=201-214&area=CALIDAD&cliente=Avianca
$correo=$_GET["m"];
$correo2=$_GET["mm"];
$asunto="INCIDENCIA: ".$_GET["a"];
$nro=$_GET["nro"];
$area=$_GET["area"];
$cliente=$_GET["cliente"];

// mensaje
$mensaje = '
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table>
		<tr>
			<td><i>Estimado departamento de <b>'.$area.'</b></i></td>
		</tr>
		<tr>
			<td><br></td>
		</tr>
		<tr>
			<td>Se ha recibido un reclamo por parte de nuestro cliente <b>'.$cliente.'</b>. Para mayor detalle y proceder a la investigacion del mismo,  agradeceremos pueda visualizar y responder el reclamo numero  <b>'.$nro.'</b>  ingresando a la siguiente direccion:</td>
		</tr>
		<tr>
			<td><br></td>
		</tr>
		<tr>
			<td><a href="http://10.24.220.131:1280/incidencias/index.php">http://10.24.220.131:1280/incidencias/index.php</a></td>
		</tr>
		<tr>
			<td><br></td>
		</tr>
		<tr>
			<td><b><i><u>Tiempo limite de investigacion del reclamo: </u></i></b> 24 horas.</td>
		</tr>
		<tr>
			<td><b><i><u>Tiempo limite de respuesta del reclamo al cliente: </u></i></b> 48 horas.</td>
		</tr>
	</table>
</body>
</html>
';

// Para enviar un correo HTML, debe establecerse la cabecera Content-type
$cabeceras  = 'MIME-Version: 1.0' . "\r\n";
$cabeceras .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Cabeceras adicionales
$cabeceras .= "From: GateGourmentPeru $correo" . "\r\n";
$cabeceras .= "Cc: $correo2" . "\r\n";


// Enviarlo
mail($correo, $asunto, $mensaje, $cabeceras);


$u=$_GET["u"];
$nvo=$_GET["nvo"];

echo "<script language='javascript'>window.location='http://10.24.220.131:1280/incidencias/com_reg_inc2.php?usu=$u&inci=$nvo'</script>";	



?>