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:
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”.