sto cercando di fare funzionare questo form php, ma quando vado a fare la prova di invio, non riesco a ricevere il messaggio via email. Solo mettendo un singolo indirizzo email il messaggio mi arriva ma a me serve che il messaggio arrivi a 3 differenti idirizzi mail.
Qualcuno puo aiutarmi per cortesia
<?php
/* Subject and Email Variables */
$emailSubject = '***** Prenotazione ore lezione snowboard ******';
$webMaster = 'info@scuolascicanazei.com, info@xse.it, fiorenzo@xse.it, info@franzx.com';
/* Gathering Data Variables */
$emailField = $_POST['email'];
$nomeField = $_POST['nome'];
$telefonoField = $_POST['telefono'];
$maestroField = $_POST['maestro'];
$lezioneField = $_POST['lezione'];
$personeField = $_POST['persone'];
$commentiField = $_POST['commenti'];
$dataField = $_POST['data'];
$body = <<<EOD
<hr>
Email: $email
Nome: $nome
Telefono: $telefono
Maestro richiesto: $maestro
Persone: $persone
Commenti e altre richieste info: $commenti
Data di prenotazione lezione: $data
EOD;
$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$succes = mail($webMaster, $emailSubject, $body, $headers);
/* Results render as HTML */
$theResults = <<<EOD
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Richiesta prenotazione ore sci snowboard</title>
<style type="text/css">
<!--
body {
background-color: #FFCC00;
}
.style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight: bold;
}
-->
</style></head>
<body>
</p>
<p align="center" class="style1">Grazie per la Sua richiesta, La contatteremo al piu presto!</p>
<p align="center" class="style1">Thank you for your interest! We will contact you as soon as possible!</p>
</body>
</html>
EOD;
echo "$theResults";
?>