Hello NogDog.
First, thank for your answer.
I've done a test with your piece of code. It displays no errors.
The rest of the code displays a number one, like that:
1
I guess it's the echo of the sentOk variable. So, seems that the code is working, but I'm still no receiving any email (not ither in the spam folder)
I did test without the $post[]:
<?php
/*ini_set('display_errors', 1); // set to 0 for production version
error_reporting(E_ALL);*/
/* rest of code.... */
$adminaddress = "xxx";
$siteaddress ="xxx";
$sitename = "xxx";
$date = date("d/m/Y H:i:s");
if (empty($_SERVER["REMOTE_ADDR"])) {
$ip = "no ip";
}else{
$ip = getHostByAddr($_SERVER["REMOTE_ADDR"]);
}
$message = "Contractor info:\n
Date: '$date'
Name: sergio
Surname: test
Company: test
Email: xxx\n
Info :
------------------------------
Host: $ip";
$headers = "FROM: $adminaddress";
$sentOk = mail($adminaddress,$sitename,$message, $headers);
echo "sentOk=" . $sentOk;
?>
Of course, it doesn't work.
By the way, flash is receiving the response normaly.
Ahhhhhhhhhhhhhhhhhhhhh!
Excuse me. Just for relax.