Ci ho appena provato, ma non invia nulla "credo..."
ho corretto il codice con questi dati:
codice:
//------INVIA----------
send_btn.onRelease = function() {
//
if (firstName_txt.text == "" || email_txt.text == "" || message_txt.text == "") {
campiObbligatori_mc._alpha = 0;
errore_txt.text = "Please provide information for all required fields marked with an asterisk ( * ).";
} else {
if (checkMail(email_txt.text)) {
var nome = firstName_txt.text;
var cognome = lastName_txt.text;
var email = email_txt.text;
var messaggio = message_txt.text;
this.loadVariables("posta.php", "POST");
campiObbligatori_mc._alpha = 0;
errore_txt.text = " e-Mail sended correctly";
trace("-> Variabili: " + nome + " " + cognome + " " + email + " " + messaggio);
} else {
errore_txt.text = "The e-mail address you entered was not valid, please try again.";
}
}
};
Se lo provo in flash mi restituisce come variabili, il contenuto dei campi di testo, e fin qui ok, però l'email online non parte....
Come codice PHP per l'invio uso:
Codice PHP:
<?php
if ((isset($_POST['nome'])) && (isset($_POST['cognome'])) && (isset($_POST['email'])) && (isset($_POST['messaggio']))) {
$nome=$_POST['nome'];
$cognome=$_POST['cognome'];
$email=$_POST['email'];
$testo=$_POST['messaggio'];
$msg = "E-MAIL INVIATA DAL SITO DI RADIO in WEB\n";
$msg .= "Nome: $nome\n";
$msg .= "Cognome: $cognome\n";
$msg .= "e-mail: $email\n";
$msg .= "Messaggio: $messaggio\n";
$destinatario = "miaemail@miaemail.it";
$oggetto = "eMail dal sito";
$intestazionimail = "From:info@miosito.com\n";
$intestazionimail .= "Reply-To: $email\n\n";
mail($destinatario, $oggetto, $msg, $intestazionimail);
}
?>
<HTML>
<BODY BGCOLOR="#FFFFFF">
[...]
</BODY>
</HTML>
Qualche idea??