I am experiencing the same problem.
When I use this statement within the wpcf7_before_send_mail hook:
if ( $WPCF7_ContactForm->posted_data[‘Checkbox12’] == ‘Yes’ ) {
$WPCF7_ContactForm->mail[‘recipient’] = “<[email protected]>”;
}else{
$WPCF7_ContactForm->mail[‘recipient’] = “<[email protected]>”;
}
The message is sent to email2 @gmail.com, even if the check box is selected as “Yes”.
Could the problem be that, the values of checkboxes and radio buttons are stored within an array in [‘values’] ? When assigning a variable to $WPCF7_ContactForm->posted_data[‘Checkbox12’] it returns as an array, I am not a php expert, but is there some way we can get the specific values assigned and stored within that array?
Thanks in advance.
Your title appears to be display twice.
In this instance you could remove the %%sitetile%% and it won’t display twice, since the plugin automatically pulls the site title from the general settings as well