Hi, i can’t send an email from a client’s server, here is the info PHP of the server:
http://www.theguaz.com/playmovil/diarehm/phpinfo.php.htm
and here is the code that i’m using:
<?php
$to = "[email protected]" . ", " ;
$to .= "[email protected]";
$msg = "$name
";
$msg .= "$phone
";
$msg .= "$email
";
$msg .= "$comment
";
$mailheader = "From: $email
";
mail($to, "CONTACTO DESDE PAGINA WEB", $msg, $mailheader );
?>
The thing is for now i did a conection betwen the swf located on the server of my client and my form in my server to send the emaill from there, here is the code for the calling movie:
System.security.allowDomain("http://www.theguaz.com");
loadMovieNum("http://www.theguaz.com/playmovil/diarehm/contacto.swf", 1);
My client is satisfied with this but i’m really concerned about why i couldn’t sent the emails from his server.
The client’s server is windows based, it has something to see with that??
By the way i’m sending the variables from a flash form, here is the code for the send btn:
on (release, keyPress "<Enter>") {
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {
status = "Ingrese un e-mail válido";
} else if (!name.length) {
status = "Ingrese su nombre";
} else if (!comment.length) {
status = "Escriba su mensaje";
} else {
_root.form.gotoAndStop(2);
_root.form.loadVariables("http://www.theguaz.com/playmovil/diarehm/form.php", "POST");
}
}
Any help will be very useful.
theguaz