Ho la necessità di utilizzare il servizio SMTP su un server remoto.

Ho messo nel file php.ini

[mail function]
; For Win32 only.
SMTP = <nome del server smtp>;
smtp_port = 25

; For Win32 only.
sendmail_from = io@me.com


Riavviato apache

Provato il semplice script:
<?
if(mail("cippo@yahoo.com","oggetto","testoblabla") ){
echo "E-Mail inviata con successo";
}
?>

e mi da questo errore :
"Warning: mail() [function.mail.html]: SMTP server response: 507 Authentication required in ...."


mentre se faccio

<?
$smtpauth = 'TRUE'; // SET THIS TO TRUE IF YOUR SMTP SERVER REQUIRES AUTHENTICATION
$smtpauthuser = 'XXX'; // SMTP USERNAME - USUALLY THE SAME AS YOUR MAILBOX
$smtpauthpass = 'yyy'; // SMTP PASSWORD - USUALLY THE SAME AS YOUR MAILBOX


if(mail("ciao@yahoo.it","oggetto","testoblabla")){
echo "E-Mail inviata con successo";
}
?>

mi da questo errore :
"Warning: mail() [function.mail.html]: SMTP server response: 530 Authentication required in ...."


Credo il problema sia l'autenticazione da settare per appoggiarmi a questo server esterno SMTP.....

Ma come devo fare a configurare l'utente e la password.??????