Sto cercando di mandare una mail con mail() (da localhost) usando questo codice:

Codice PHP:
$to "xxxxxx@gmail.com"
$subject "Test mail"
$message "This is a test."
$from "test@test.com";
$headers "MIME-Version: 1.0\r\n"
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$from."\r\n\r\n";  

if (
mail($to,$subject$message$headers))
   echo 
"Mail sent.";
else
   echo 
"Error"
Quando lo lancio mi dice "mail sent", ma non viene mandata alcuna mail.....

Il file php.ini sembra essere a posto:
Codice PHP:
[mail function]
; For 
Win32 only.
SMTP localhost
smtp_port 25

; For Win32 only.
;
sendmail_from = [email]me@example.com[/email]

; For 
Unix only.  You may supply arguments as well (default: "sendmail -t -i").
sendmail_path = /usr/sbin/sendmail --i

Force the addition of the specified parameters to be passed as extra parameters
to the sendmail binaryThese parameters will always replace the value of
the 5th parameter to mail(), even in safe mode.
;
mail.force_extra_parameters 
Il servizio sendmail è attivo ovviamente.

Idee?