Ciao
perdonami se posto in coda a una richista risolta. Il mio problema è quasi lo steso. Sono su un server Windows di Mr Domain. Circa un mese fa hanno avuto un piccolo problema e mi hanno spostato. Il problema che aveto testato questo codice e funzionava perfettamente mentre adesso mi da l'errore sopracitato
PHP Warning: mail() [function.mail]: SMTP server ** response: 501 5.5.4 Invalid Address in C:\WebSites\
ho visto nel codice che è presente /n ma non riesco a modificarlo per farlo finzionare. Quando era tutto ok supportava anche un doppio indirizzo di invio.
Grazie a chi riesce a darmi un aiuto
Ecco il codice
<?
$subject="from ".$_GET['nomi'];
$subject="from ".$_GET['message'];
$subject="from ".$_GET['your_email'];
$subject="from ".$_GET['data_riceviemnto'];
$subject="from ".$_GET['telefono'];
$subject="from ".$_GET['location'];
$subject="from ".$_GET['consenso'];
$subject="from ".$_GET['non_consento'];
$subject="Richiesta informazioni per un ricevimento il ".$_GET['data_ricevimento'];
$headers= "From: ".$_GET['your_email']."\n";
$headers.='Content-type: text/html; charset=iso-8859-1';
mail("[email protected]", $subject, "
<html>
<head>
<title>Contact letter</title>
</head>
<body>
<br>
<strong> Questa richiesta è Arrivata dalla email:</strong> ".$_GET['your_email']."
<br>
<br>
<strong>Nome:</strong> ".$_GET['nomi']."
<br><br>
<strong>Indirizzo email:</strong> ".$_GET['your_email']."
<br><br>
<strong>Indirizzo email:</strong> ".$_GET['telefono']."
<br><br>
<strong>Data del Ricevimento:</strong> ".$_GET['data_ricevimento']."
<br><br>
<strong>Accetto i termini:</strong> ".$_GET['consenso']."
<br><br>
<strong>Non accetto i termini:</strong> ".$_GET['non_consento']."
<br><br>
<strong>Messaggio dall'utente: </strong> ".$_GET['message']."
<br><br>
</body>
</html>" , $headers);
echo ("<strong>Grazie. L'E-Mail è stata inviata correttamente. Riceverete una risposta entro 24 ore. Se volete scrivere ad un'altra struttura tornate indietro </strong>");
?>
<script>
resizeTo(700, 700)
//window.close()
</script>