Answer the question
In order to leave comments, you need to log in
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):
-------------
here is how i include the scripts and jquery
-------------
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
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;
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question