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: email@example.com\r\n"; mail('firstname.lastname@example.org', 'My Subject', $message, $headers); ?>
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-18.104.22.168\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.