I'm trying to send email from a simple form type page using PHP, but it doesn't seem to be working (this is a script that was tested and working before).
I have now created the following test:
$to = ($GET['email'] != '') ? $GET['email'] : 'email@example.com';
$subject = 'Test email';
$message = '
This is a test email to check the PHP mailer code is working, and that the
mail server is actually sending email.
If you are reading this, then it works!
$result = mail($to, $subject, $message);
echo "mail result: $result
echo "to: $to
echo "subject: $subject
echo "message: $message
The result shows as "1" so as far as PHP is concerned the email has been sent, but it does not appear to be working.
FWIW my web server is "redondo".