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 protected]";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "[email protected]";
$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?
mail()
would work and EE's phpmail support wouldn't but sometimes it's easier to switch to an alternative approach rather than debugging a weird issue. Have you tried the SMTP option?