Thread Starter
keldn
(@keldn)
Good afternoon,
you have copied the helper function for filter #3 correctly, but you have failed to read and follow its instructions. A helper function is only a guidance and not a solution. If you look at your code (http://keldfoto.dk/wp-content/uploads/2019/05/screen1.jpg) you are trying to filter the fields ‘field-one’, ‘field-two’ and ‘field-three’. are you using such field names in your form?
Thread Starter
keldn
(@keldn)
Yes – look at screen2.jpg 😉
oops, my mistake, sorry.
So what output are you getting?
re-reading your initial question:
but no mail is sent from the contact form
this is a mail settings issue! This plugin doesn’t send emails, it only modifies the mail content. So if you’re not getting an email its an issue with either your server or SMTP configuration. Search on the CF7 forum for help.
Thread Starter
keldn
(@keldn)
But when the function not installed, the program send email.
Any place I have make a mistake?
Best regards
Keld
I see. Did you enable WP_DEBUG mode to check for errors?
Thread Starter
keldn
(@keldn)
Will try it when I back, in an airplan on my way to Spain 😉
Thread Starter
keldn
(@keldn)
I will run some tests on my local server and see if something changed in the the CF7 plugin.
Thread Starter
keldn
(@keldn)
Hi
Now I got mail !
I have change the function.php :
add_filter( ‘wpcf7_validate_configuration’, ‘__return_false’ );
My mail look like this:
Fra: Hans Hansen
Emne: Bestilling af billeder
Bestilling fra Keld Foto hjemmeside:
row(1):12345
row(2):24587
row(1):1
row(2):2
row(1):70×100
row(2):37,5×49
Hans Hansen
Hansensvej 12
9999 Hansby
[kundeemail]
12454787
—
Denne e-mail er afsendt fra en formular på Keld Foto (http://keldfoto.dk)
using wpcf7_validate_configuration
would imply your form wasn’t being submitted as it would fail validation… was that the case? were you getting any validation message?