Hi,
I just wanted to share this information with you to be able to send email via php. It works fine to me.
Go to php.ini file and find the line below; (Do changes according to your settings.)
php.ini
[mail function]
; Setup for Windows systems
SMTP = your smtp server
sendmail_from = your email
send.php
<?php
$to = "myuncle@uncle.com";
$subject = "Test mail";
$message = <<< emailbody
Dear uncle,
Where have you been.
Bye
emailbody;
mail($to,$subject,$message );
?>