• Firstly whilst I hope you can help on this forum I’m happy to pay to get this fixed if outside the scope of the forum support.

    I’m trying to get an email address which is set in a Portfolio item meta box to be used in the CF7 Mail (2) “To” field. But not working. Outline description below:

    At: http://extperts.com/projects/ceo-cfo/
    Trying to setup form so that the “To” email address in Mail (2) is dynamically populated from a value in the Portfolio item’s meta box (the developer wasn’t keen to tell me how to implement custom fields on Portfolio items, preferring Meta Boxes). So within metabox.php have included this code:

    array(
    				'name'    	=> __( 'Extpert_email', EF_TDM ),
    				'id'		=> "{$prefix}extpert_email",
    				'type'		=> 'text',
    			),

    I’m using Contact Form 7 – Dynamic Text Extension plugin and have included in the form:

    [dynamichidden dynamichidden-810 “CF7_get_custom_field key=’extpert_email'”]

    and in Mail (2) “To” field

    [dynamichidden-810]

    But getting “This field has syntax errors.” and the Mail (2) is not being delivered.

    Happy to share screenshots if helpful.

    https://wordpress.org/plugins/contact-form-7-dynamic-text-extension/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Have the same problem. Looks like there is a conflict between Dynamic Text Extension and latest version of CF7 4.4. The latest version has changed the way it forces to use an EMAIL FIELD for using inside the form.

    As anyone found a solution to this or another option? I’m looking to do the same.

    I have the same issue. Anyone solved this yet?

    Hi I have the same issue. Could someone please help?

    I’ve found a solution for this. Though im not sure if it’s a correct one. But it works.

    First, remove Contact Form 7 validate function by adding this line in your functions.php

    //Remove Validate function in Contact Form 7
    add_filter( 'wpcf7_validate_configuration', '__return_false' );

    Next, download and configure a SMTP-plugin to send your emails instead of the build in function. For example the plugin “Postman SMTP” by Jason Hendriks, https://sv.wordpress.org/plugins/postman-smtp/

    Hope this helps anyone else.

    Thanks man I will try it out!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Sending data from Meta Box to email "To" field’ is closed to new replies.