Hi, Contact forms I created in my website doen’t work. Can you take a look at it?
Hi afarahani!
Yes, unfortunately hostgator makes a lot of troubles with contact forms. You can try to install the smtp mail plugin: https://wordpress.org/plugins/webriti-smtp-mail/ and if this plugin doesn’t fix it try to install https://wordpress.org/plugins/contact-form-7/ and check if cf7 can send mails. If not please ask the hostgator support team to check the server configuration. A user reported his host doesn’t allow to send emails from a different tld and the only possible fix is to change the sender email. You can use this code to change the sender address – insert it at the bottom of child theme functions.php or enfold/functions.php and replace (Email address hidden if logged out) with your email address.
add_filter('avf_form_from', 'avia_change_from', 10, 3);
function avia_change_from($from,$new_post,$params){
$from = ' (Email address hidden if logged out) ';
return $from;
}
Cheers!
Peter
i host with hostgator too – i am no php person… and all the answers seem to have been around configuration of extra addons which is beyond me.. so i havew requested support from them… i’ll let you know what i hear :-)