$to = $_POST['destinatario'];
$from = $_POST['mittente'];
$INCIDENT = $_POST['Ticket'];
$AREA = $_POST['Area'];
$SERVIZIO = $_POST['Servizio'];
$INDICEIMPATTO = $_POST['Impatto'];
$INDICEURGENZA = $_POST['Urgenza'];
$indirizzo1 = $_POST['indirizzo1'];
$mail = new PHPMailer(false);
$mail->IsSMTP();
try {
$mail->Host = "smtp.gmail.com"; // DA PERSONALIZZARE
$mail->SMTPDebug = 0;
$mail->SMTPAuth = true;
$mail->SMTPSecure = "tls";
$mail->Port = 587;
$mail->Username = "[email protected]"; // DA PERSONALIZZARE
$mail->Password = "xxxxxxxxx"; // DA PERSONALIZZARE
$mail->AddReplyTo($from, $from);
$mail->AddAddress($to);
$mail->AddAddress($indirizzo1);
$mail->SetFrom($from, $from);
$mail->AddReplyTo($from, $from);