• Hi,
    in my theme I found a custom functions for add more email to CF7 before to send it.

    This is the code:

    if ( ! function_exists( 'tt_wpcf7_agent_admin_email' ) ) {
    	function tt_wpcf7_agent_admin_email ( $form ) {
    
    	$properites = $form->get_properties();
    
    	'Add Custom Email
    	$recipients = $email;
    	$recipients = $recipients . ", email1@email.it"
    
    	$properites['mail']['recipient'] = $recipients;
    
    	$form->set_properties( $properites );
    	
    	}
    }
    
    add_action( 'wpcf7_before_send_mail', 'tt_wpcf7_agent_admin_email' );

    Ho can I add these emails in Cc or Ccn?

    Thanks,
    Roberto.

The topic ‘Add CCn email through php code’ is closed to new replies.