Contact form issues - PHP mail function works, but Blocs does not

I’m trying to get the contact form to work, and when I fill it out and click “Submit” it does not show whether it worked or not.

Here’s what I know:

– the PHP mail() function on the server I am using works – I created a test.php file to send mail and it works correctly

  • I’ve configured my host to use my external mail service – in this case, easyDNS. It’s properly resolving the sending from email adress

– there is nothing in mail.log for any of the Blocs contact form submissions …

Any suggestions?

Does your server support none SMTP posting?

I know it supports this: not sure if SMTP posting is there. Is that the minimum?

<?PHP $sender = ''; $recipient = ''; $subject = "php mail test"; $message = "php test message"; $headers = 'From:' . $sender; if (mail($recipient, $subject, $message, $headers)) { echo "Message accepted"; } else { echo "Error: Message not accepted"; } ?>

Postfix is serving as an SMTP server

echo “This is the body of the email” | mail -s “This is the subject line”