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:<?php $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
\n"; echo "to: $to
\n"; echo "subject: $subject
\n"; 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”.