hello again, i tried using this php codes on testmail.php
PHP Code:
<?php
$to = "lm_nicolas26@yahoo.com.ph";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "sakuragi_26_chill@yahoo.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
its an 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:\xampp\htdocs\testmail.php on line 8
Mail Sent.
here is the php.ini config:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = sakuragi_26_chill@yahoo.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
can anyone tell me how to fix this?tnx...
Bookmarks