I recommend asking at https://ww.wp.xz.cn/support/plugin/contact-form-7/#new-post so the plugin’s developers and support community can help you with this.
Hi @sterndata,
I pointed @thelabo here because after ruling out contact form 7 as a cause (a simple function with wp_mail has the same slowness as cf7) and done many many tests, I suggested to ask here because you have a deep knowledge of WordPress and you might know the reason for this slowness (>5s to deliver an email)
So, if CF7 isn’t working well for you, there a many, many other good forms plugins. Try another.
the OP has already tried another form without success! I wouldn’t send him here at random!
Seems something related to wp_mail() because even a simple function into functions.php has the same slowness.
That’s why I sent the thelabo here because maybe you know if there might be problems with wp_mail/phpmailer, if someone has already experienced this problem and how to solve it.
-
This reply was modified 4 years, 9 months ago by
Erik. Reason: add the reason why I directed thelabo here
Yes I tried other forms and same issue.
When clicking on ‘Send message’, the loader keeps loading.
long response time for https://le-briand.fr/wp-admin/admin-ajax.php
On the background all the email are sent fast.
But the success message takes too long to show (5s+)
thx
Any thoughts on how I could resolve the issue ?
>> Yes I tried other forms and same issue. << Other forms? Or other plugins?
This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.
@sterndata
I tried switching to the default theme, deactivating all plugins excluding Contact Form 7, and clearing all cache data.
I use the form from the plugin ‘Ultimate Addons for Gutenberg’.
I’m using TwentyTwenty theme.
This may be a hosting issue. Have you tried using an SMTP plugin?
We did some tests with the hosting provider, change PHP version, cache optimization.
We had good results when disabling the firewall. But disabling firewall opens all closed ports including 20000:25000.
when deactivating server’s firewall it goes much faster but they said that the problem isn’t firewall but the way how the message want to go out.
I tried SMTP plugin but same issue.
If disabling the firewall makes it faster, then the firewall is the problem. Contact your host for help debugging this.
They made speed test on fresh WordPress installation under le-briand.fr domain.
And the form works with server’s firewall enabled.
For them it’s not a firewall issue.
Can it come from the multisite installation ?
Maybe… multisite makes everything more complex. π