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: firstname.lastname@example.org\r\n"; mail('email@example.com', '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-126.96.36.199\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.