I have a Wordpress 4.9.20 running Abiko theme website.
I have a contact form 7, and when I submit it, it throws the following error:
{into: "#wpcf7-f15498-p7-o1"
message: "There was an error trying to send your message. Please try again later."
status: "mail_failed"}
Yesterday I had captcha 2 and it was throwing a spam error, now I updated to captcha 3 and it throws mail_failed. The website it not used frequently and I don't know when the error started.
Are there any backend logs I can check? Or I need to install a plugin for everything on WP? What should I do to debug this? I haven't worked with WP before.
A few things can cause this error. What color border is around the error "There was an error trying to send your message. Please try again later." Orange or red?
Red tells you that the form is not sending and is caused by your server not sending the email. Try contacting the host.
Orange tells you that your form is not sending because of a spam issue. First try removing the [recaptcha] shortcode and test again to see if the problem remains.
If it still has the issue then you have some sort of odd configuration going. Generally there are two different ways of fixing this issue: You can either create a business email address with your domain name and use the new email in your contact form settings, or you can install and set up an SMTP plugin and use a dedicated email sending service.
I am New to Payment Gateway Integration and i'm using CCAvenue iFrame method for my site. Using Query String method i sent all details like amount, merchant id, order id etc. to ccavRequestHandler.aspx.cs file.
But it shows only Blank Page without any error message.
There are all done in my testing environment and testing environment is activated from CCAvenue.
Thanks in Advance.
Finally I found the Ans...
In CCAvenue Iframe method, dont change anything in "download kit". And Use that files(dataform.htm,ccavRequestHandler.aspx, ccavResponseHandler.aspx with dll) without change anything.
Make Sure Test Environment is Activated or not from CCAvenue. if its not make call to CCAvenue they will do it. After that use test environment url(www.test.ccavenue.com/..... ) with Newly Generated Access code and Working key.
Sure U will Get the Final Result.
Hope, i will helps someone.
All the mails sent from a Contact Form 7 form are being marked by gmail as spam.
A hint: I looked at the option "Show Original" and I found stuff like this:
Return-Path: <www-data#localhost>
....
Received-SPF: none (google.com: www-data#localhost does not designate permitted sender hosts) client-ip=178.216.103.114;
....
Authentication-Results: mx.google.com;
spf=neutral (google.com: www-data#localhost does not designate permitted sender hosts) smtp.mail=www-data#localhost;
dmarc=fail (p=NONE dis=NONE) header.from=gmail.com
See all thos www-data#localhost ? My guess is that they have something to do with the problem (but I could be wrong).
What could I do to solve this problem on the server side?
This is a common issue with Contact Form 7 and some php mail or server settings on some hosts.
Try hardcoding the sender name in the ‘From:’ field in the ‘Mail’ section like Webmail <a-valid-address#mydomain.com> This means you won't see the sender name or email as names and return emails in your incoming mail box, but that doesn't matter much, as the sender's email will be in the body of the message.
If that doesn't work, try https://wordpress.org/plugins/wp-mail-smtp/ to use SMTP instead of php mail.
And see http://contactform7.com/faq/ and http://buzztone.com.au/contact-form-7-email-issues/
This can be solved via using "WP Mail SMTP" plugin which is for enabling SMTP auth in wordpress. Just install the plugin via wordpress admin or download and extract the plugin zip file to wordpres plugins folder. Correct permissions.
Activate "WP-Mail-SMTP" plugin in wordpress admin >> Plugins. Then go to Wordpress Admin >> Settings >> Email
Enter your email settings as mentioned in the screen shot. Make sure you have turned ON "Use SMTP authentication". If you are using remote MX, specify the remote MX instead of "localhost" in SMTP Host.
This month i had the same problem, after suffering for two weeks I found the problem.
The WordPress default CONFIG -> DISCUSSION is applying the disallowed words list to the CF7 forms.
Try adding this code snippet to your child theme functions.php file:
/**
* CONTACT FORM 7
* Disable WP Disallowed List for SPAM validation
*/
add_filter( 'wpcf7_submission_has_disallowed_words', '__return_false', 10, 2 );
It worked for me.
I'm having trouble with my wordpress installation sending out emails to the site admin
every time a comment is up for moderation.
This also goes for spam comments which results in the site admin getting alot of junk emails in his inbox.
Every time I google this problem I end up with the answer "Just go to Settings -> Discussion and unclick 'A comment is held for moderation'" but unfortunately this is not helping me.
So, here are my settings (some of these may be irrelevant):
I'm using wordpress' built in comment-system. No disqus or facebook comments.
I've installed the Akismet-plugin. I did try to disable the plugin, but I still get the emails.
Both "Anyone posts a comment" and "A comment is held for moderation" is NOT checked under "Settings" -> "Discussion" -> "E-mail me whenever" on the sites.
You do not have to be logged in to write a comment
The WP installation is originally a Wordpress MU installation, but I've upgraded to 3.x so it's now build into the regular wordpress installation. The installation run many blogs with different domain names and the problem occurs on all blogs AFAIK.
Most of the blogs are using the "Yashfa BRANDED!" theme
The moderation email looks like this:
Subject: [SITENAME] Please moderate: "Test spam comments"
Body:
A new comment on the post 78 "Test spam comments" is waiting for your approval
http://url/test-spam-comments/
Author : djqw21208ryfg23 (IP: XXX.XXX.XXX.XXX , XXX.XXX.XXX.XXX)
E-mail : fweuh3298f9wefg923g329#jkg23ru89g9werhj239r8h238t923.asdfhio
URL : http://feg239r239f9fg7329rfg322379fg23f3
Whois : http://ws.arin.net/cgi-bin/whois.pl?queryinput=XXX.XXX.XXX.XXX
Comment:
ugly spam comment goes here...
Approve it: http://url/wp-admin/comment.php?action=mac&c=XXXXX
Delete it: http://url/wp-admin/comment.php?action=cdc&c=XXXXX
Spam it: http://url/wp-admin/comment.php?action=cdc&dt=spam&c=XXXXX
Currently 0 comments are waiting for approval.
Please visit the moderation panel:
http://url/wp-admin/moderation.php
Is there a setting I've forgotten to check?
Why do I keep on getting these emails even though I've turned off the email-settings under "Settings" -> "Discussion"?
I'm having the same problem: wordpresses sending out mails. I host some wordpress blogs for other people, who sometimes drop off the planet and don't look after them any more. I do have full access to the database, so this is my method of closing wordpress down for comments and disabeling the mail:
(this assumes the default table-prefix of wp_*)
There are two options that influence the sending of mail: comments_notify and moderation_notify. I set both to false:
UPDATE wp_options SET option_value=0 WHERE option_name LIKE "%notify";
I also delete all the un-approved comments:
DELETE FROM `wp_comments` WHERE `comment_approved` = 0;
and close all the posts and pages for further comments:
UPDATE `wp_posts` SET comment_status='closed';
and then there's still the mailqueue to clean up .... :-(
In this page, I'm using the Contact Form 7 plug in (at the very bottom).
When I fill the form and press send the form stay loading forever.
Any suggestions?
code:
<p>您的姓名 〈需填寫〉<br />
[text* your-name] </p>
<p>您的電子郵件信箱 〈需填寫〉<br />
[email* your-email] </p>
<p>主旨<br />
[text your-subject] </p>
<p>您的信件內容<br />
[textarea your-message] </p>
<p>[submit "傳送"]</p>
(there's isn't really too much code since is a Wordpress plugin).
I'm using Wordpress 3.0.1 and Contact Form 7 (3.3.1)
Step:1
Go to ftp:
wp-content/plugins/contact-form-7/contact-form-7.php
In contact-form-7.php
Step:2
Find:
if ( ! defined( 'WPCF7_LOAD_JS' ) )
define( 'WPCF7_LOAD_JS', true);
Replace:
if ( ! defined( 'WPCF7_LOAD_JS' ) )
define( 'WPCF7_LOAD_JS', false );
upload your file and Try it done.
Try another contact form plugin to see if you can send any email at all. Check your webhost error logs for php errors.
Use the developer tools in your browser to check for Javascript errors. Contact Form 7 uses javascript for some of the form processing, and you may have a Javascript conflict.
The issue might be a server problem. Ask your webhost if there are issues using php mail. Try sending an email manually using php mail; see How to send an email using PHP?
Also, try WordPress › WP Mail SMTP « WordPress Plugins which allows you to test send email via SMTP and will show a log of server actions and which will let you possibly find the issues.
Since I don't want to edit any plugin files I went with the filter options:
// WPC7 forms were not submitting, this fixes that
add_filter( 'wpcf7_verify_nonce', '__return_true' );
add_filter( 'wpcf7_load_js', '__return_false' );
It might be conflict with other plugins, like another contact form? In my case I was using MMForms-Community and Contact Form 7 is the reason.. So in other words, I can not use both as they conflict with each other from WP version 3.0 and up.
Editing contact-form-7.php as mentioned above helped but my emails would not arrive in my inbox, but they were in my sent box.
Similar to my configuration:
Google Cloud for hosting WordPress (WP)
Google’s G Suite for email (smtp.gmail.com)
Contact Form 7 - WP Plugin
Postman SMTP - WP Plugin
Main email - John-Doe#example.com
Alias email - info#example.com
I was able to get the emails to my inbox by using the main-email account in the From location in Postman SMTP instead of the gmail alias because the main was needed for authentication.
Worked: From: John-Doe#example.com To: info#example.com
Did not work: From: info#example.com To: info#example.com
The text below is from the chat session with Google’s Support.
The reason why you have to use a different domain is because the web forms get confused and try to deliver the email at your web host rather than your mail host, they see your domain in the recipient and say "hey this is the same domain where the site is hosted at, it should be the same, lets save some effort looking at the domain’s MX records and lets leave it right here".
The From: field needs to be your primary email address since it requires authentication (aliases can’t authenticate), the TO: field has to be preferably an email not from your domain name, like the test alias example.com.test-google-a.com.
If you are sending it from a website is different, the behavior when it gets dropped is just when you use Gmail web mail or a mail client. For web forms, send the emails to the aliases from the test example.com.consulting.test-google-a.com.
I want to add to VijaiJerald's answer. That particular solution didn't work for me, but it did work when I changed as he proposed:
if ( ! defined( 'WPCF7_LOAD_JS' ) ) {
define( 'WPCF7_LOAD_JS', true);
}
Replace with:
if ( ! defined( 'WPCF7_LOAD_JS' ) ) {
define( 'WPCF7_LOAD_JS', false );
}
But also the following line:
if ( ! defined( 'WPCF7_VERIFY_NONCE' ) ) {
define( 'WPCF7_VERIFY_NONCE', false);
}
Replace with:
if ( ! defined( 'WPCF7_VERIFY_NONCE' ) ) {
define( 'WPCF7_VERIFY_NONCE', true );
}
I also want to note that literally no other solution worked for me (disabling all plugins, changing the WP_DEBUG value, resetting the browser, reinstalling Wordpress, updating and upgrading all plugins, disabling all custom CSS and JavaScripts, etc...) so this might help people that have this issue. I also want to note that while it wasn't working on my laptop (tried multiple browsers), I didn't had this issue on my phone at all.
Usually infinite loading is caused by a problem in your theme. You can overwrite the style/code of Contact Form 7 with javascript and a piece of css.
You can solve this problem with the following piece of javascript:
document.addEventListener( 'wpcf7submit', function( event ) {
jQuery('head').append('<style type="text/css">.aw-no-spinner:before{display:none!important}</style>');
jQuery('body').find('.processing').addClass('aw-no-spinner');
}, false );
jQuery('.wpcf7-submit').on('click', function( event ) {
jQuery('body').find('.processing').removeClass('aw-no-spinner');
});
In this example we use the built-in hook of contact form 7: wpcf7submit
When this event is fired then our piece of code is executed. This piece of code adds an extra class to the loading wrapper of contact form 7. And also we add a piece of css to the head so we don't have to put this in a separate CSS file.
We have also incorporated this solution into a WordPress plugin for users who prefer not to add code to their website or do not have a child theme.
This is the link to the plugin, but you can also use the piece of code described above.
https://wordpress.org/plugins/awcf7-stop-spinning/