вот кодинг привязанный к кнопке отправки
------------------------------------------------------
on (release) {
var n = new LoadVars();
myName = new controllo_nome(nome.text);
mySurname = new controllo_nome(cognome.text);
myEmail = new controllo_email(email.text);
if (myName.name && mySurname.name && myEmail.name && length(messaggio.text)>0 && desideri != undefined) {
attenzione.text = "Connessione al server in corso..."+newline+"Attendere prego";
n.nome = nome.text;
n.cognome = cognome.text;
n.email = email.text;
n.messaggio = messaggio.text;
n.Submit = true;
n.desideri = _root.desideri;
n.sendAndLoad("mail.php", n, "POST");
n.onLoad = function(success) {
_root.attenzione.text = this.attenzione;
_root.mailCookie.data.time = new Date().getTime();
_root.mailCookie.flush();
_root.sendBtn.enabled = false;
_root.sendBtn._alpha = 30;
};
} else {
attenzione.text = "ATTENZIONE!"+newline+"Controllare i campi prima di inviare il modulo";
}
}
--------------------------------------------------------
а это кодинг PHP модуля
------------------------------------------------------
<?
header("Pragma: no-cache");
header("Cache-Control: no-cache, must-revalidate");
if(isset($_POST['Submit'])){
$to = "nio@nm.ru"; // email sender
$to2 = $_POST['email']; // spedizione della conferma al mittente
$from2 = "nio@nm.ru"; // da chi viene spedita la conferma
$subject2 = "письмо с сайта";
$body2 = "Grazie, $email\n L'email и stata spedita in modo corretto.\n bye bye from Sephiroth\n
www.sephiroth.it";
$extraInfo = "Questa Email ti и stata spedita da (IP address " . getenv("REMOTE_ADDR") . "):\n\n";
// nome, cognome, messaggio ed email sono le variabili che sono state passate da flash
$subject = "Richiesta di informazioni dal sito Web: " . $_POST['nome'] . ", " . $_POST['cognome'];
$body = "От: " . $_POST['nome'] . ", " . $_POST['cognome'] . "\n";
$body .= "Сообщение: " . $_POST['messaggio'] . "\r\n";
$body .= "От: $to2";
// spediamo la mail
if (@mail($to, $subject,$extraInfo . $body, "From: $email\nX-Mailer: PHP/" . phpversion())){
if($_POST['desideri'] == "true"){
mail($to2, $subject2,$extraInfo . $body2, "Return-Path: <nio@nm.ru>\r\n" . "From: $from2\r\n" . "Reply-to:
nio@nm.ru\r\n" . "X-Mailer: PHP/" . phpversion());
}
// se l'invio и avvenuto correttamente
echo "attenzione=" . urlencode("Email succesfully sent");
} else {
// se ci sono stati degli errori nell'invio
echo "attenzione=" . urlencode("Some errors occurred");
}
}
?>
-----------------------------------------------------------------
может кто то на вид определит где ошибка?