Hi, have you manage to solve it?
I have the same problem, does anybody have the solution?
Finally, I think I found the solution. You will have to edit 1 file of the contact form 7. It checks it recipient field is correct, and I figured out that I don’t need it. After that I could add [dynamichidden-403] into TO (recipient) field.
1.) go to plugins/contact-form-7/includes/config-validator.php
2.) Delete on lines 262 to 266 /if ( ! wpcf7_is_mailbox_list( $recipient ) ) {
$this->add_error( sprintf( ‘%s.recipient’, $template ),
self::error_invalid_syntax,
array( ‘link’ => __( ‘http://contactform7.com/configuration-errors/#mail.recipient:error_invalid_syntax’, ‘contact-form-7’ ) ) );
}/
3.) After that add [dynamichidden-x] to recipient field
-
This reply was modified 9 years, 6 months ago by
amedic.
-
This reply was modified 9 years, 6 months ago by
amedic.
-
This reply was modified 9 years, 6 months ago by
amedic.
Hi amedic, that’s correct about back office validation. But in this way it still doesn’t send any message, returning error. How you resolved it?
Hi, are you passing the email to [dynamictext-867]? I tested my variable inside the mail and it was picking the correct email address.
Yes man, the value is correctly passed to the field, but sending the message it returns me error in sending …
Hi @amedic!
You solved my issue!
I deleted those lines in the config-validator.php file and although the contact form still says it has syntax errors, it works out and it sends the email with the information filled.
Thanks for your help!