Although the contact form seems to be working fine, I can’t receive any of my test emails. When I click “send” I do get the “ok” check-mark icon but I don’t receive the message.
My host is Godaddy, the $sender_domain is ‘server@your-domain.com’; and $to is my email address. Also tried with $sender_domain set to me domain but still can’t receive any messages.
Hi, Your host may have disabled the mail() function. It must be enabled on your server.
I would recommend you to install ninja form plugin instead of default contact form. https://wordpress.org/plugins/ninja-forms/
Thanks
For future reference to anyone that might have the same problem and you use Godaddy as a host, make sure you go to the cPanel –> Email settings –> MX Entry –> and check which Mail Exchanger is selected. I am using a remote server and mine was selected at “local” that’s why it didn’t work. I changed it to remote mail exchanger and now it receives without a problem.