mdsimpson / contact-form-7-to-database-extension

CFDB - WordPress plugin to save form submissions into a database
GNU General Public License v3.0
240 stars 59 forks source link

Form data is saved in DB even when mail was not sent #44

Open Luckyfella73 opened 6 years ago

Luckyfella73 commented 6 years ago

Hi,

I have contact form 7 installed and the cf7db plugin. WP and both plugins are updated to the newest version. The problem: sometimes the form can't be send for any reason - in that case you get the message from contact-form-7 plugin (something like: can't be send at the moment, try again later or get in contact with admin). When clicking at the send button the form data is saved by your plugin every time while there is no mail sent. Would there be a way to hook the saving process to the contact-form-7 state "mail sent successfuly" instead of "form was submitted" ?