I have installed easyphp and I'm trying to send an email from my computer (server).
My PHP code:
<?php
$message = "Line 1\nLine 2\nLine 3";
$headers = "From: sender@example.com\r\n";
mail('receiver@metu.edu', 'My Subject', $message, $headers);
?>
Error message:
Warning: mail() [function.mail]: Failed to connect to mailserver at "127.0.0.1" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\Program Files\EasyPHP-5.3.3.1\www\email.php on line 9
Now, do I need to install an email server? Is it mandatory?
Edit: I don't think that my ISP will allow me to send emails from their servers.