Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #893942

    Hello,

    I have the problem that no one of my contact forms (many different domains) will not working. At one of the form, I cannot push the send button. It has no function. I’ve already deactivated all plugins except the woocommerce plugins.

    I have already tried the plugin “Contact Form 7” and it works fine! It seems, that it is a problem with Enfold 4.2, because one of my webseite with Enfold 4.1.2 works without any problems! The Problem is only in version 4.2 !!

    On another website, the button works, but the email would not be sent.

    Anybody an idea?

    Regards, John

    #893948

    Hey John,
    On the contact form for the first link, the Diagonal section border was overlapping the send button. It was transparent so you couldn’t see it. I added this code in the General Styling > Quick CSS field:

    #top.home div.entry-content-wrapper {margin-bottom: 100px;}

    On the second link I installed WP Mail Logging and found the form tried to send a mail but got the error: “Could not instantiate mail function” which means the server is not properly configured for sending PHP emails. WP Mail Logging plugin suggests installing WP Mail SMTP to solve this issue. Please try.

    Best regards,
    Mike

    #893957

    Hey Mike,

    thank you very much for your help !!!!
    The first link works fine and for the second link a contacted the webhost for a solution because on every other domain by this host, the mail function works.

    I will let you know, when the problem is solved.

    Best regards,
    John

    #894066

    Hi John,

    Thanks for the feedback, we’ll keep the thread open in case you should need any further help on the topic.

    Best regards,
    Rikard

    #894519

    Hey,

    now I’ve contacted my host and they told me, that they changed their server configuration due to spam protection.

    They told me that the contact form has to be changed to a static sender address and a “reply to” mail header.

    Could anybody help me with this problem? I have to change it also on all my other domain on this webhost :-(

    Below you will find a temporary login.

    Thanks in advance,

    John

    #894655

    Hi,
    I added this code to the end of your functions.php file in Appearance > Editor:

    add_filter( 'avf_form_from', 'enfold_customization_contact_form_etc', 10, 3 );
    function enfold_customization_contact_form_etc( $from, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$enfold_custom_from_header = $from;
    }
    add_filter( 'avf_form_mail_header', 'enfold_customization_contact_form_etc2', 10, 3 );
    function enfold_customization_contact_form_etc2( $header, $p1, $p2 ) {
    	global $enfold_custom_from_header;
    	$header .= 'Reply-To: ' . $enfold_custom_from_header . '\r\n';
    	return $header;
    }

    which adds the reply-to in your mail header. You can see the test mail in the WP Mail Log plugin on your site, it also shows there is no longer a sending error.
    Please check.
    Please note that if you test, try not to use the same address in the form from address that it is going to, as it may trigger your hosts spam protection.

    Best regards,
    Mike

    #894781

    Thank you Mike. It works!

    Great Job ;-)

    John

    #895021

    Hi,

    I’m glad Mike was able to help. If you need additional help, please let us know here in the forums.

    Best regards,
    Jordan Shannon

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Contact Form without function’ is closed to new replies.