Hello. I want to run a webpage so it can send emails from forms filled in (such as examples using the below code) which uses the mail() function.
<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
However, I cannot get any messages sent out using this!
I appreciate that PHP requires an installed and working email system, however, what exactly do I need to do to get a email sent from and to any computer. Can it be done?
Many thanks.