NON CAPISCO QUESTO : action="<? echo $_SERVER['PHP_SELF']; ?>
ho provato a copiarla per intero con dreamweaver in una pagina php e provare ad inviara, non me la invia.
ORA
Se io ho una pagina come quella che ho riportato sopra in html (con nome, cognome, password e validazioni varie in java) e in action la invio a questa pagina.php
Codice PHP:
<?php
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "ESEMPIO@live.it";
// IL SOGGETTO DELLA MAIL
$subject = "Modulo proveniente dal sito [url]www.miosito.it[/url]";
// COSTRUIAMO IL CORPO DEL MESSAGGIO
$body = "Contenuto del modulo:\n\n";
$body .= "nome: " . trim(stripslashes($_POST["Nome"])) . "\n";
$body .= "cognome: " . trim(stripslashes($_POST["Cognome"])) . "\n";
$body .= "nickname: " . trim(stripslashes($_POST["Nickname"])) . "\n";
$body .= "password: " . trim(stripslashes($_POST["Password"])) . "\n";
$body .= "conferma: " . trim(stripslashes($_POST["Conferma"])) . "\n";
$body .= "nascita: " . trim(stripslashes($_POST["Nascita"])) . "\n";
$body .= "sesso: " . trim(stripslashes($_POST["Sesso"])) . "\n";
$body .= "citta: " . trim(stripslashes($_POST["Citta"])) . "\n";
$body .= "indirizzo: " . trim(stripslashes($_POST["Indirizzo"])) . "\n";
$body .= "telefono: " . trim(stripslashes($_POST["telefono"])) . "\n";
$body .= "email: " . trim(stripslashes($_POST["Email"])) . "\n";
$body .= "homepage: " . trim(stripslashes($_POST["Homepage"])) . "\n";
$body .= "firma: " . trim(stripslashes($_POST["Firma"])) . "\n";
// INTESTAZIONI SUPPLEMENTARI
$headers = "From: Modulo utenti<modulo@sito.it>";
// INVIO DELLA MAIL
if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO È ANDATO A BUON FINE...
echo "La mail è stata inoltrata con successo.";
} else {// ALTRIMENTI...
echo "Si sono verificati dei problemi nell'invio della mail.";
}
?>
perchè non mi funziona 
Devo mettere in $to = "ESEMPIO@live.it"; o altro non capisco