Hi All,
Howz u???
Could u plz lemme know, if sending a mail using PHP requires any server or something like working email system?
I tried simple text mail using php in localhost using below code but, it didn't work:
<?php
$to = "<my frnd'z id>";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "<my id>";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
If it need a server, is there any link to get a free test server?
Thanx in advance!