This is my first time trying to send email using php. I used this script which I found on W3school however it gives me the error shown below. What did I miss here?
<?php
$to = "somebody@example.com";
$subject = "My subject";
$txt = "Hello world!";
mail($to,$subject,$txt);
?>
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()