Hoping this will help someone trying to learn everything at once, the following worked out for me. As a start use the following in your functions.php…
add_action( 'wpcf7_mail_sent', 'do_my_work' ); //access after send
if( ! function_exists( 'do_my_work' ) ) {
function do_my_work($cf7){ //contact form object passed in
/* Use WPCF7_Submission object's get_posted_data() method to get it. */
$submission = WPCF7_Submission::get_instance();
$posted_data = $submission ? $submission->get_posted_data() : null; //get form data
if($posted_data){
$formName = $posted_data['your-name']; //get form field value
// do something more
}
}
}