Ciao raga, io dovrei fai mandare e-mail dal mio sito agli utenti ke mi vorrebbero scrivere: questo e il codice.php
<?php
// L’INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "salvatore.ciotola@tiscali.it";
// IL SOGGETTO DELLA MAIL
$subject ="www.pianura91.altervista.org";
// COSTRUZIONE DEL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "Dati personali" ;
"nome: " . trim(stripslashes($_POST["nome"])) . "\n";
$body .= "cognome: " . trim(stripslashes($_POST["cognome"])) . "\n";
$body .= "Città: " . trim(stripslashes($_POST["citta"])) . "\n";
$body .= "Oggetto: " . trim(stripslashes($_POST["oggetto"])) . "\n";
$body .= "testo: " . trim(stripslashes($_POST["testo"])) . "\n";
$body .= "mail: " . trim(stripslashes($_POST["mail"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Modulo utenti<salvatore.ciotola@tiscali.it>";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) { // SE L’INOLTRO E’ ANDATO A BUON FINE…
echo "La mail è stata inoltrata con successo.";
} else {// ALTRIMENTI…
echo "Si sono verificati dei problemi nell’invio della mail.";
}
QUando pero lo metto in internet nel mio sito, e clicco su invio, non va a buon fine.
Mi potreste aiutare?