Edit your CF7 form and make sure that the field name for the email address is your-email
It cannot be email or myemail or anything else. It has to be your-email
See the screenshots page for an example (2nd screenshot):
https://wordpress.org/plugins/email-before-download/screenshots/
If yours is already your-email then you’ll need to provide a URL to your page so I can try it, if possible. Plus, your shortcode, where it’s ‘inline’ or ‘both’, if you’re using masked, etc. And, it sounds like it was working .. for how long? did you just it up and it worked once or twice and then stopped or have you had it working for months? etc.
@dtynan
You have no idea how much aggravation you just saved me. I was having the same issues as the @rich777uk and after updating my CF7 form, everything worked fine.
Any reason why that is? And thank you so much
Actually, I haven’t been able to figure out how it ever worked for anyone unless they had your-email in there — even in the previous couple of versions. My best guess is that wordpress changed how the wp_mail() function works such that if the parameter where the email address goes is empty (as it would be if you didn’t have your-email) then it exits (causing failure now) but maybe it used to not exit & instead just returned an error (which is how it might have worked for people before). That’s just layers of guessing based on the code — I haven’t bothered to test it or check wordpress version differences or anything like that. It’s good enough to know that it has to be your-email now (even if you’re not actually sending email … in other words, even if you set to ‘inline’).