el codigo que utilizo es este
Código PHP:
<?php
$para = '[email protected]';
$asunto = 'el asunto';
$mensaje = 'hola';
$cabeceras = 'From: [email protected]' . "\r\n" .
'Reply-To: [email protected]' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($para, $asunto, $mensaje, $cabeceras);
?>
pero me da este error
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\AppServ\www\mail\index.php on line 9
en mi php.ini lo tengo de este modo
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
me esta faltando algo???
Saludos