F
F
furcifer2018-02-26 21:29:18
JavaScript
furcifer, 2018-02-26 21:29:18

Contact form 7 error while submitting?

Good evening! I'm setting up a feedback form via the CF7 plugin. I fill in the fields, press the send button- An error occurred while sending the message. Please try again later.
How to identify what the problem is and what to do, tell me please?
here is the code where i put the CF7 shortcode (popup):
5a9451702e0e5435623192.png
-------------
here is how i include the scripts and jquery
5a94519cdb4b2714080783.png
-------------
js related issue Or maybe I stupidly wrote something wrong somewhere !?
Help, thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan Hasanli, 2018-02-27
@azerphoenix

Hello!
There is not enough information to answer this question. However, I can say that the current version of CF7 and the VI work correctly and send emails. Based on this, it is worth considering the following points:
- In the form settings, the sender's mail must match the site name (For example, [email protected])
- In Settings -General, the mail that is specified above must also be indicated.
- Try to configure mail forwarding via SMTP protocol. WP Mail SMTP
- Check availability of ports 25 467 587 (some hosts close them)
As a rule, configuring SMTP solves the problem. Sometimes some hosters limit mail and you need to specify a specific mail, which can be found from the hosting (something like [email protected])
- Also check for plugin conflicts. Disable other plugins and try sending an email.
- Also check for conflict with the theme.
- The functionality of the wp_mail () && php mail () functions can be installed by installing the WP MAIL SMTP plugin and seeing if messages are being sent there.
- Also, if you have an SSL certificate, then there are often errors on self-signed certificates. Either fix the problem or disable verification
If you have an SSL certificate on your site, then add to functions.php

add_filter( 'wp_mail_smtp_custom_options' , function( $phpmailer ){
        $phpmailer->SMTPOptions = array(
            'ssl' => array(
                'verify_peer' => false,
                'verify_peer_name' => false,
                'allow_self_signed' => true
            )
        );
        return $phpmailer;
    });

R
Roman, 2018-02-27
@llgruff

furcifer , yes
On free hostings (on BEGET exactly, you can check with support) they disable mail, the mail php function.
This is done to protect against spam.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question