Sto cercando di fare uno script molto semplice che mi permetta di mandare una mail.

ho settatto il file php.ini in questo modo:

[mail function]
; For Win32 only.
SMTP = smtp.gmail.com
smtp_port = 25

; For Win32 only.
sendmail_from = x.x@gmail.com

poi ho fatto questo script banale:

<?php

$to= "x@libero.it";
$subject= "soggetto";
$message="questo è il testo";

if(mail($to, $subject,$message))
echo "[b] PHP messaggio inviato[b]";

?>

ho questo errore:

Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in

????

Chi mi aiuta?

Thank's!