Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #1101169

    The contact form on my clients website doesn’t work. I’ve installed contact form 7 and then it works like a charm. What could be the issue?

    #1101962

    Hey kashmyra,
    Sorry for the late reply, I would recommend installing the plugin WP Mail Logging to see what errors are occurring when the contact form is used. Sometimes the mail is sent but the server trashes as spam because of the server rules.

    Best regards,
    Mike

    #1102319

    Hi Mike,

    Thank you for the reply. I installed the logging, sent a few testmails, but the logging does not show any errors. Still I don’t receive any mail. What else could I try?

    Thanks for your help!

    #1102338

    Hi,
    Thank you, I also tested, since there is no error from WordPress I believe the error occurs after it is sent. Does your webhost have spam assassin or other spam protection installed? In this case they may require a static sender address or a “reply to” mail header. You will need to ask them if this is true and what they require, we can assist with a filter for this.
    Since CF7 is working for you I believe this rules out that your webhost is requiring you to use SMTP to send messages.

    Best regards,
    Mike

    #1102559

    Hi Mike,

    I’m completely stuck with this issue. It’s so strange. I’ve got another website hosted there (different server though), on that site the contact form is working fine. On this site it isn’t. Mail settings are equal and no antispam is running.

    The only thing I can think of that is different is when I setup the website there was a different administrator email address (gmail address). Later I changed that to info@thatspecificdomain… Can it somehow have something to do with that?

    Regards,
    Joanne

    #1102668

    Hi,
    It is possible that if the admin email doesn’t match, but it looks like your admin email did set correctly.
    Also, I believe this would also cause an issue with CF7, which is not the case.
    Perhaps try testing with this plugin: WP Test Email
    Have asked your webhost if they require a “reply to” mail header or something else?
    Our contact form is very basic when compared to CF7, and I have seen a webhost requirement like this before.

    Best regards,
    Mike

    #1103226

    Hi Mike,

    I tested with WP test email and that works. I contacted my webhost and they said they don’t require a ‘reply to’ mail header or something else. I did install WP SMTP just to test and that works. Unfortunately the sender is then not the emailaddress you entered in the contact form, so you can not use ‘reply’. I don’t find that very practical to work with. Also it still is a workaround.

    Regards,
    Joanne

    #1103264

    I too am having the same probelm. I also installed Contact Form 7 & it works fine but the built in contact form is not working on this currently version of Enfold.

    #1103280

    I have just got my form to work, i had to switch off the Google reCaptcha v3 & it working. So possibly the issue is with the captcha?

    #1103396

    No, it has nothing to do with the Google reCaptcha v3. I don’t have that installed.

    #1104166

    Hi,
    Sorry for the late reply, I re-read your post about using WP SMTP, so to add the visitor email to the reply, try adding this code to the end of your functions.php file in Appearance > Editor:

    add_filter('avf_form_from', 'enfold_contact_form_change_from', 10, 3);
    function enfold_contact_form_change_from($from, $new_post, $form_params) {
            global $enfold_visitor_from;
            $enfold_visitor_from = $from;
            $from = "info@domain";
            return $from;
    }
    
    add_filter( 'avf_form_mail_header', 'enfold_contact_form_add_replyto', 10, 3 );
    function enfold_contact_form_add_replyto( $header, $p1, $p2 ) {
            global $enfold_visitor_from;
            $header .= 'Reply-To: ' . $enfold_visitor_from . "\r\n";
            return $header;
    }

    please adjust the “info@domain” in the code to your email address.

    Best regards,
    Mike

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.