• I have set global variables in the head of my page that are pulled dynamically throughout my site. One of these is an Email variable that needs to be placed into contact form 7’s ‘recipient’ field.

    I’m editing this file in the ‘Admin’ file of ContactForm7 but it’s not recognising the gloabl variables and subsequently not sending my mail.

    'recipient' => trim( $_POST['wpcf7-mail-recipient'] ),

    I have replaced it with:
    'recipient' => trim( $my_variables_array['email'] ),

    (line 32 of admin/admin.php)

    Is this the correct field to edit, or does someone know how I can achieve my goal?

    Thanks,

  • The topic ‘[Plugin :Contact Form 7]Using global variables in Contact Form7 recipient field.’ is closed to new replies.