Symptom: Contact Form does not send mail, but reports success.
maybe someone has an idea how to proceed. I have a standard contact form that DOES return a thank you (success) message but no email is being send.
I tried both sendmail and PHPmail in the email settings - and when I try to send an email from the tools > communicate form I get errors on both ("Unable to send email using PHP Sendmail/PHP mail")
But if I enable PHP in the template and write a simple piece of PHP:
<?php $to = "email@example.com"; $subject = "Test mail"; $message = "Hello! This is a simple email message."; $from = "firstname.lastname@example.org"; $headers = "From: $from"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?>
This works. So PHP mail() works. ....
What the heck could be possibly wrong? What do I miss here?