-
AuthorPosts
-
May 15, 2019 at 10:11 pm #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?
May 18, 2019 at 3:33 am #1101962Hey 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,
MikeMay 19, 2019 at 7:27 pm #1102319Hi 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!
May 20, 2019 at 12:09 am #1102338Hi,
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,
MikeMay 20, 2019 at 8:01 pm #1102559Hi 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,
JoanneMay 21, 2019 at 4:31 am #1102668Hi,
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,
MikeMay 22, 2019 at 10:28 am #1103226Hi 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,
JoanneMay 22, 2019 at 1:31 pm #1103264I 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.
May 22, 2019 at 2:21 pm #1103280I 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?
May 22, 2019 at 4:54 pm #1103396No, it has nothing to do with the Google reCaptcha v3. I don’t have that installed.
May 25, 2019 at 2:01 pm #1104166Hi,
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 -
AuthorPosts
- You must be logged in to reply to this topic.