Reputation: 199
I have Contact Form 7 and Contact Form DB installed on my WordPress site, but don't and don't want to have a mail server. At this moment, I can collect form information from Contact Form DB, so is there any ways to disable the mailing function of a submit button?
Upvotes: 4
Views: 6959
Reputation: 333
There may have been some changes. For example, on current version setting demo_mode: on
will result in database not being filled with forms.
Use skip_mail: on
instead.
From the official website:
The skip_mail setting works in the almost same manner as the demo_mode, but the skip_mail skips the mail sending only. Unlike demo_mode, skip_mail doesn’t affect other activities like storing messages with Flamingo.
Source: https://contactform7.com/additional-settings/
Upvotes: 2
Reputation: 552
Add this code to your plugin or functions.php
add_filter('wpcf7_skip_mail', 'yourname_wpcf7_skip_mail');
function yourname_wpcf7_skip_mail()
{
return true;
}
It works for me.
Upvotes: 5
Reputation: 2942
Adding this into the Additional Settings
section makes it stop mailing.
demo_mode: on
Upvotes: 6